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

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

Issue 6183005: Merge 69758 - Do not show apps section until default apps are installed.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/597/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/default_apps.h » ('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
===================================================================
--- chrome/browser/dom_ui/app_launcher_handler.cc (revision 71005)
+++ chrome/browser/dom_ui/app_launcher_handler.cc (working copy)
@@ -186,6 +186,16 @@
dictionary->SetBoolean("disableAppWindowLaunch", true);
dictionary->SetBoolean("disableCreateAppShortcut", true);
#endif
+
+ // We always show the launcher on Chrome OS. On Desktop Chrome, only show it
+ // if we've installed our default apps.
+#if defined(OS_CHROMEOS)
+ dictionary->SetBoolean("showLauncher", true);
+#else
+ dictionary->SetBoolean(
+ "showLauncher",
+ extensions_service_->default_apps()->GetDefaultAppsInstalled());
+#endif
}
void AppLauncherHandler::HandleGetApps(const ListValue* args) {
« no previous file with comments | « no previous file | chrome/browser/extensions/default_apps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698