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

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

Issue 2877483002: Add about:flags entries for UseGoogleLocalNtp and OneGoogleBarOnLocalNtp (Closed)
Patch Set: less ifdef 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
« no previous file with comments | « chrome/browser/search/local_ntp_source.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index a3d0a8e3599d7c73579e5218d9f3ba9dad3b2785..e0bd3d894d41229a04d517e2e9f0c6cb6f28ea21 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -23,6 +23,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_instant_controller.h"
#include "chrome/browser/ui/search/instant_search_prerenderer.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/features.h"
#include "chrome/common/pref_names.h"
@@ -81,10 +82,6 @@ enum NewTabURLState {
NEW_TAB_URL_MAX
};
-base::Feature kUseGoogleLocalNtp {
- "UseGoogleLocalNtp", base::FEATURE_DISABLED_BY_DEFAULT
-};
-
const TemplateURL* GetDefaultSearchProviderTemplateURL(Profile* profile) {
if (profile) {
TemplateURLService* template_url_service =
@@ -198,7 +195,7 @@ bool ShouldShowLocalNewTab(const GURL& url, Profile* profile) {
#endif // defined(OS_CHROMEOS)
if (!profile->IsOffTheRecord() &&
- base::FeatureList::IsEnabled(kUseGoogleLocalNtp) &&
+ base::FeatureList::IsEnabled(features::kUseGoogleLocalNtp) &&
DefaultSearchProviderIsGoogle(profile)) {
return true;
}
« no previous file with comments | « chrome/browser/search/local_ntp_source.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698