Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: chrome/browser/upgrade_detector_impl.cc

Issue 2263503002: Make running the outdated build detector conditional on a Feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/upgrade_detector_impl.cc
diff --git a/chrome/browser/upgrade_detector_impl.cc b/chrome/browser/upgrade_detector_impl.cc
index cd9668de8fa2ec3d5057eaaf8ea5c1045c8b5b22..d2726479fb5560e5e4a5f334b05d9f37f64c70a0 100644
--- a/chrome/browser/upgrade_detector_impl.cc
+++ b/chrome/browser/upgrade_detector_impl.cc
@@ -12,6 +12,7 @@
#include "base/bind.h"
#include "base/build_time.h"
#include "base/command_line.h"
+#include "base/feature_list.h"
#include "base/files/file_path.h"
#include "base/memory/singleton.h"
#include "base/path_service.h"
@@ -393,6 +394,12 @@ void UpgradeDetectorImpl::CheckForUpgrade() {
}
bool UpgradeDetectorImpl::DetectOutdatedInstall() {
+ constexpr base::Feature kOutdatedBuildDetector =
grt (UTC plus 2) 2016/08/23 08:54:44 thakis: should this really be: static constexpr
+ { "OutdatedBuildDetector", base::FEATURE_ENABLED_BY_DEFAULT };
+
+ if (!base::FeatureList::IsEnabled(kOutdatedBuildDetector))
+ return false;
+
// Don't show the bubble if we have a brand code that is NOT organic, unless
// an outdated build is being simulated by command line switches.
static bool simulate_outdated = SimulatingOutdated();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698