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

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

Issue 6057002: Disable 'create shortcut' in newtab apps pulldown menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser
Patch Set: Also hide <hr> Created 10 years 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/new_new_tab.html » ('j') | chrome/browser/resources/ntp/apps.js » ('J')
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 01bffa9cea93ca62cbdacb37583c39790c17870c..cad07276a173f4eed9632a8e41af59c6dc6ddbde 100644
--- a/chrome/browser/dom_ui/app_launcher_handler.cc
+++ b/chrome/browser/dom_ui/app_launcher_handler.cc
@@ -186,6 +186,11 @@ void AppLauncherHandler::FillAppDictionary(DictionaryValue* dictionary) {
dictionary->SetBoolean("disableAppWindowLaunch", true);
dictionary->SetBoolean("disableCreateAppShortcut", true);
#endif
+#if defined(OS_CHROMEOS)
+ // Making shortcut does not make sense on ChromeOS because it does not have
+ // a desktop.
+ dictionary->SetBoolean("disableCreateAppShortcut", true);
+#endif
}
void AppLauncherHandler::HandleGetApps(const ListValue* args) {
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.html » ('j') | chrome/browser/resources/ntp/apps.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698