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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 9358031: Added new adaptive "Suggest" tab on the New Tab Page, behing the flag, for the experiments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove extra line Created 8 years, 10 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/ui/webui/ntp/ntp_resource_cache.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
index bcc893d21d03bd35ef0e8a576c96a46ad75d1e1b..c0ce38914109bd98bcdfb70440f96c87dfe6a768 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -292,6 +292,8 @@ void NTPResourceCache::CreateNewTabHTML() {
l10n_util::GetStringUTF16(IDS_NEW_TAB_TITLE));
localized_strings.SetString("mostvisited",
l10n_util::GetStringUTF16(IDS_NEW_TAB_MOST_VISITED));
+ localized_strings.SetString("suggested",
+ l10n_util::GetStringUTF16(IDS_NEW_TAB_SUGGESTED));
localized_strings.SetString("restoreThumbnailsShort",
l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK));
localized_strings.SetString("recentlyclosed",
@@ -341,6 +343,8 @@ void NTPResourceCache::CreateNewTabHTML() {
localized_strings.SetBoolean("appInstallHintEnabled",
CommandLine::ForCurrentProcess()->HasSwitch(
switches::kNtpAppInstallHint));
+ localized_strings.SetBoolean("isSuggestedPageEnabled",
+ NewTabUI::IsSuggestedPageEnabled());
#if defined(OS_CHROMEOS)
localized_strings.SetString("expandMenu",

Powered by Google App Engine
This is Rietveld 408576698