summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/app_launcher_handler.cc
diff options
context:
space:
mode:
authorjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 21:00:31 +0000
committerjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 21:00:31 +0000
commitf76bf24628afe66ba4e20de378b4220c3d0bface (patch)
treef74de2c5798464a404e86326b69c6efef9545b87 /chrome/browser/dom_ui/app_launcher_handler.cc
parentaa7f29088190105cde730979a51287bca6f4f9d1 (diff)
downloadchromium_src-f76bf24628afe66ba4e20de378b4220c3d0bface.zip
chromium_src-f76bf24628afe66ba4e20de378b4220c3d0bface.tar.gz
chromium_src-f76bf24628afe66ba4e20de378b4220c3d0bface.tar.bz2
Adds --enable-app-launcher command line switch
Adds the --enable-app-launcher command line switch, which displays the app launcher on the new tab page when present. Now the app launcher is shown on NTP if there are 1 or more apps installed, or if this switch is present. BUG=59532 TEST=You should see the Apps section on the new tab page when chrome is run with --enable-app-launcher. Review URL: http://codereview.chromium.org/3808009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63103 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/app_launcher_handler.cc')
-rw-r--r--chrome/browser/dom_ui/app_launcher_handler.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/app_launcher_handler.cc b/chrome/browser/dom_ui/app_launcher_handler.cc
index 3f3d04a..2da2ef6 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) {