Files
brave-core/browser/update_util.cc
T
Simon Hong a7348e61c5 Sparkle: update server url and enable background update when browser starts
Request explicit update check when about page loads
TODO: about page should show update status like windows version does.
2018-07-11 22:02:37 +09:00

22 lines
541 B
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "brave/browser/update_util.h"
#include "base/command_line.h"
#include "brave/common/brave_switches.h"
namespace brave {
bool UpdateEnabled() {
#if defined(OFFICIAL_BUILD)
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableBraveUpdate);
#else
return false;
#endif
}
} //namespace brave