Request explicit update check when about page loads TODO: about page should show update status like windows version does.
22 lines
541 B
C++
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
|