diff options
author | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-18 19:50:55 +0000 |
---|---|---|
committer | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-18 19:50:55 +0000 |
commit | 3ecda25370679e59f6bc5a05181d9698b3d10182 (patch) | |
tree | d800a6b24395baedbd63a2869cd124910e83ac9b /chrome/browser/resources/ntp/apps.js | |
parent | 1e61db506aa4c0014d384c2d990525be38cdbc60 (diff) | |
download | chromium_src-3ecda25370679e59f6bc5a05181d9698b3d10182.zip chromium_src-3ecda25370679e59f6bc5a05181d9698b3d10182.tar.gz chromium_src-3ecda25370679e59f6bc5a05181d9698b3d10182.tar.bz2 |
Revert 66646 - Add "open as window" menu item to NTP app menu.
BUG=59697
TEST=BrowserTest.OpenAppWindowLikeNtp,SessionRestoreUITest.RestoreAfterClosing*
Review URL: http://codereview.chromium.org/5019005
TBR=skerner@chromium.org
Review URL: http://codereview.chromium.org/5168004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66665 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp/apps.js')
-rw-r--r-- | chrome/browser/resources/ntp/apps.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js index 2e4a92c..7069231 100644 --- a/chrome/browser/resources/ntp/apps.js +++ b/chrome/browser/resources/ntp/apps.js @@ -21,10 +21,6 @@ function getAppsCallback(data) { var appsPromoPing = PING_WEBSTORE_LAUNCH_PREFIX + '+' + data.showPromo; var webStoreEntry; - // Hide the app window menu option on platforms that do not support it. - $('apps-launch-type-window-menu-item').style.display = - (data.disableAppWindowLaunch ? 'none' : 'inline'); - appsMiniview.textContent = ''; appsSectionContent.textContent = ''; @@ -154,11 +150,10 @@ var apps = (function() { var LaunchType = { LAUNCH_PINNED: 0, LAUNCH_REGULAR: 1, - LAUNCH_FULLSCREEN: 2, - LAUNCH_WINDOW: 3 + LAUNCH_FULLSCREEN: 2 }; - // Keep in sync with LaunchContainer in extension_constants.h + // Keep in sync with LaunchContainer in extension.h var LaunchContainer = { LAUNCH_WINDOW: 0, LAUNCH_PANEL: 1, @@ -189,8 +184,7 @@ var apps = (function() { // Update the commands related to the launch type. var launchTypeIds = ['apps-launch-type-pinned', 'apps-launch-type-regular', - 'apps-launch-type-fullscreen', - 'apps-launch-type-window']; + 'apps-launch-type-fullscreen']; launchTypeIds.forEach(function(id) { var command = $(id); command.disabled = isPanel; @@ -221,7 +215,6 @@ var apps = (function() { case 'apps-launch-type-pinned': case 'apps-launch-type-regular': case 'apps-launch-type-fullscreen': - case 'apps-launch-type-window': chrome.send('setLaunchType', [currentApp['id'], e.command.getAttribute('launch-type')]); break; |