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

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

Issue 11953021: Don't show the apps page on the NTP if the app launcher is installed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make shouldShowApps a pref Created 7 years, 11 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_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index 7986baaa4390d24dbf46a8ab0865383931da49b2..d85d78da67d61f20b7816262843a2ae1d98d993c 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -125,6 +125,8 @@ NewTabUI::NewTabUI(content::WebUI* web_ui)
if (service)
web_ui->AddMessageHandler(new AppLauncherHandler(service));
}
+
+ web_ui->AddMessageHandler(new AppsPagePresenceHandler());
#endif
web_ui->AddMessageHandler(new FaviconWebUIHandler());

Powered by Google App Engine
This is Rietveld 408576698