Commit b575f63e authored by jeremya@chromium.org's avatar jeremya@chromium.org

Restore the 'Create Shortcuts...' menu item for v1 apps on !mac.

The shortcut code on mac can only handle v2 apps, so we keep the menu item
hidden there.

BUG=175691
R=estade@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12223120

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182172 0039d316-1c4b-4281-b951-d872f2087c98
parent ca8062bf
...@@ -150,8 +150,13 @@ cr.define('ntp', function() { ...@@ -150,8 +150,13 @@ cr.define('ntp', function() {
this.disableNotifications_.hidden = false; this.disableNotifications_.hidden = false;
this.disableNotifications_.checked = notificationsDisabled; this.disableNotifications_.checked = notificationsDisabled;
} }
this.createShortcutSeparator_.hidden = this.createShortcut_.hidden = if (cr.isMac) {
!app.appData.packagedApp; // On Windows and Linux, these should always be visible. On ChromeOS,
// they are never created. On Mac, shortcuts can only be created for
// new-style packaged apps, so hide the menu item.
this.createShortcutSeparator_.hidden = this.createShortcut_.hidden =
!app.appData.packagedApp;
}
}, },
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment