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

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

Issue 9567027: aura: Remove apps from NTP4 and disable NTP4 intro bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/new_tab_page_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc b/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc
index 4af63a8184d8605641be056f3ca2d155348a0afa..e9ee7bfabdf04538a8b54ee01d522d3979da30a8 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc
@@ -168,6 +168,9 @@ void NewTabPageHandler::GetLocalizedValues(Profile* profile,
values->SetInteger("shown_page_type", shown_page & ~INDEX_MASK);
values->SetInteger("shown_page_index", shown_page & INDEX_MASK);
+#if !defined(USE_AURA)
+ // Only show intro bubble for non-aura build.
+
PrefService* local_state = g_browser_process->local_state();
int intro_displays = local_state->GetInteger(prefs::kNtp4IntroDisplayCount);
// This preference used to exist in profile, so check the profile if it has
@@ -186,6 +189,7 @@ void NewTabPageHandler::GetLocalizedValues(Profile* profile,
values->SetString("learn_more",
l10n_util::GetStringUTF16(IDS_LEARN_MORE));
}
+#endif
}
// static

Powered by Google App Engine
This is Rietveld 408576698