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; |
}, |
/** |