Chromium Code Reviews| 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(); |