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

Unified Diff: chrome/browser/search/local_ntp_source.cc

Issue 2877483002: Add about:flags entries for UseGoogleLocalNtp and OneGoogleBarOnLocalNtp (Closed)
Patch Set: Created 3 years, 7 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
Index: chrome/browser/search/local_ntp_source.cc
diff --git a/chrome/browser/search/local_ntp_source.cc b/chrome/browser/search/local_ntp_source.cc
index 8f4b7085fb04b103e298781486a92ab68fd78812..2cc808fcc22e5464000b6ad3e8c03546cda20e91 100644
--- a/chrome/browser/search/local_ntp_source.cc
+++ b/chrome/browser/search/local_ntp_source.cc
@@ -26,6 +26,7 @@
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/browser_resources.h"
@@ -47,9 +48,6 @@
namespace {
-base::Feature kOneGoogleBarOnLocalNtpFeature{"OneGoogleBarOnLocalNtp",
- base::FEATURE_DISABLED_BY_DEFAULT};
-
// Signifies a locally constructed resource, i.e. not from grit/.
const int kLocalResource = -1;
@@ -239,7 +237,7 @@ LocalNtpSource::LocalNtpSource(Profile* profile)
weak_ptr_factory_(this) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- if (base::FeatureList::IsEnabled(kOneGoogleBarOnLocalNtpFeature)) {
+ if (base::FeatureList::IsEnabled(features::kOneGoogleBarOnLocalNtp)) {
one_google_bar_service_ =
OneGoogleBarServiceFactory::GetForProfile(profile_);
}

Powered by Google App Engine
This is Rietveld 408576698