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

Unified Diff: chrome/browser/resources/ntp4/apps_page.js

Issue 11881045: Implement 'Create Shortcuts' menu item on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 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/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/apps_page.js
diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js
index 68418b12d5e232a35ece3b78999d09dd5c6b5079..21f5062ab97680733e16d39453d3235d37c38621 100644
--- a/chrome/browser/resources/ntp4/apps_page.js
+++ b/chrome/browser/resources/ntp4/apps_page.js
@@ -77,8 +77,9 @@ cr.define('ntp', function() {
this.uninstall_.addEventListener('activate',
this.onUninstall_.bind(this));
- if (!cr.isMac && !cr.isChromeOS) {
- menu.appendChild(cr.ui.MenuItem.createSeparator());
+ if (!cr.isChromeOS) {
+ this.createShortcutSeparator_ =
+ menu.appendChild(cr.ui.MenuItem.createSeparator());
this.createShortcut_ = this.appendMenuItem_('appcreateshortcut');
this.createShortcut_.addEventListener(
'activate', this.onCreateShortcut_.bind(this));
@@ -149,6 +150,8 @@ cr.define('ntp', function() {
this.disableNotifications_.hidden = false;
this.disableNotifications_.checked = notificationsDisabled;
}
+ this.createShortcutSeparator_.hidden = this.createShortcut_.hidden =
+ !app.appData.packagedApp;
},
/**
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698