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

Unified Diff: chrome/browser/dom_ui/app_launcher_handler.cc

Issue 3808009: Adds --enable-app-launcher command line switch (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: renamed a variable Created 10 years, 2 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 | « no previous file | chrome/browser/resources/ntp/apps.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/app_launcher_handler.cc
diff --git a/chrome/browser/dom_ui/app_launcher_handler.cc b/chrome/browser/dom_ui/app_launcher_handler.cc
index 3f3d04a70853188df29b85eadd3fef34a327a1fd..2da2ef67fc0f0ce85f2a6d94d7f3fe2690716529 100644
--- a/chrome/browser/dom_ui/app_launcher_handler.cc
+++ b/chrome/browser/dom_ui/app_launcher_handler.cc
@@ -153,6 +153,10 @@ void AppLauncherHandler::FillAppDictionary(DictionaryValue* dictionary) {
} else {
dictionary->SetBoolean("showPromo", false);
}
+
+ bool showLauncher =
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAppLauncher);
+ dictionary->SetBoolean("showLauncher", showLauncher);
}
void AppLauncherHandler::HandleGetApps(const ListValue* args) {
« no previous file with comments | « no previous file | chrome/browser/resources/ntp/apps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698