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

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

Issue 13926002: Always show the NTP apps page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 7 years, 8 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
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_page_handler.h ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4b59a461f2b02d17efcf2542dabe889ec6bdd960..55b911462403b17c6f43581f2a3c3ba4ae08a8cd 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_page_handler.cc
@@ -75,9 +75,6 @@ void NewTabPageHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback("logTimeToClick",
base::Bind(&NewTabPageHandler::HandleLogTimeToClick,
base::Unretained(this)));
- web_ui()->RegisterMessageCallback("getShouldShowApps",
- base::Bind(&NewTabPageHandler::HandleGetShouldShowApps,
- base::Unretained(this)));
}
void NewTabPageHandler::HandleNotificationPromoClosed(const ListValue* args) {
@@ -172,17 +169,6 @@ void NewTabPageHandler::HandleLogTimeToClick(const ListValue* args) {
}
}
-void NewTabPageHandler::HandleGetShouldShowApps(const ListValue* args) {
- apps::GetIsAppLauncherEnabled(
- base::Bind(&NewTabPageHandler::GotIsAppLauncherEnabled,
- AsWeakPtr()));
-}
-
-void NewTabPageHandler::GotIsAppLauncherEnabled(bool is_enabled) {
- base::FundamentalValue should_show_apps(!is_enabled);
- web_ui()->CallJavascriptFunction("ntp.gotShouldShowApps", should_show_apps);
-}
-
// static
void NewTabPageHandler::RegisterUserPrefs(PrefRegistrySyncable* registry) {
// TODO(estade): should be syncable.
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_page_handler.h ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698