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

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: Fixed bug in card_slider.js which prevented correct card be selected in dome cases 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 724ed326cb0d59c009b9807387aa647d00cdefa6..41446dc453fbc2985c7c322fbf24710f775f38c2 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("suggestions",
+ l10n_util::GetStringUTF16(IDS_NEW_TAB_SUGGESTIONS));
localized_strings.SetString("restoreThumbnailsShort",
l10n_util::GetStringUTF16(IDS_NEW_TAB_RESTORE_THUMBNAILS_SHORT_LINK));
localized_strings.SetString("recentlyclosed",
@@ -340,6 +342,8 @@ void NTPResourceCache::CreateNewTabHTML() {
NewTabUI::ShouldShowWebStoreFooterLink());
localized_strings.SetBoolean("appInstallHintEnabled",
NewTabUI::ShouldShowAppInstallHint());
+ localized_strings.SetBoolean("isSuggestionsPageEnabled",
+ NewTabUI::IsSuggestionsPageEnabled());
#if defined(OS_CHROMEOS)
localized_strings.SetString("expandMenu",

Powered by Google App Engine
This is Rietveld 408576698