summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search/local_ntp_source.cc
diff options
context:
space:
mode:
authorjered@chromium.org <jered@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-06 01:47:42 +0000
committerjered@chromium.org <jered@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-06 01:47:42 +0000
commit620ff56c20be427373b943a3dcbc8683f45f2173 (patch)
treef328341cc08505506497df7abfd5d8d8b02e81fb /chrome/browser/search/local_ntp_source.cc
parenta5a711b3c11a14bff947c62bfa4c9ea62f627fc8 (diff)
downloadchromium_src-620ff56c20be427373b943a3dcbc8683f45f2173.zip
chromium_src-620ff56c20be427373b943a3dcbc8683f45f2173.tar.gz
chromium_src-620ff56c20be427373b943a3dcbc8683f45f2173.tar.bz2
Field trial to disable google logo on local ntp.
Adds a field trial option to disable the custom treatment on the local NTP when Google is the DSP. It's unclear if we need this config now. BUG= R=samarth@chromium.org Review URL: https://codereview.chromium.org/156123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249208 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search/local_ntp_source.cc')
-rw-r--r--chrome/browser/search/local_ntp_source.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/search/local_ntp_source.cc b/chrome/browser/search/local_ntp_source.cc
index 6e668d7..8944ac3 100644
--- a/chrome/browser/search/local_ntp_source.cc
+++ b/chrome/browser/search/local_ntp_source.cc
@@ -105,7 +105,8 @@ std::string GetConfigData(Profile* profile) {
base::DictionaryValue config_data;
config_data.Set("translatedStrings", GetTranslatedStrings().release());
config_data.SetBoolean("isGooglePage",
- DefaultSearchProviderIsGoogle(profile));
+ DefaultSearchProviderIsGoogle(profile) &&
+ chrome::ShouldShowGoogleLocalNTP());
// Serialize the dictionary.
std::string js_text;