* Move a part of //brave/common to //brave/components * Fix lint issues * Remove brave_features.* * Fix android build * Remove dead includes * fix compilation * Fix review issues * Fix android gn check * Revert patch changes * Fix deps duplication & copyright * Fix some DEPS/BUILD.gn contradictions * gn format * move sources.gni * Fix nits * Fix after rebase
23 lines
618 B
C++
23 lines
618 B
C++
/* Copyright (c) 2020 The Brave Authors. All rights reserved.
|
|
* 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/components/constants/brave_switches.h"
|
|
|
|
namespace brave {
|
|
|
|
bool UpdateEnabled() {
|
|
#if defined(OFFICIAL_BUILD)
|
|
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
|
switches::kDisableBraveUpdate);
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|
|
|
|
} // namespace brave
|