summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_command_controller.cc
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-27 20:53:19 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-27 20:53:19 +0000
commitf19144dba4ac3b6ecf36dc1debefbcefe10ac5bb (patch)
treed3e28c6b8a5da46a1fffc38acf61d46435d895bd /chrome/browser/ui/browser_command_controller.cc
parent8e3be33d97277f79024f1a987d9a69e2a8dd2239 (diff)
downloadchromium_src-f19144dba4ac3b6ecf36dc1debefbcefe10ac5bb.zip
chromium_src-f19144dba4ac3b6ecf36dc1debefbcefe10ac5bb.tar.gz
chromium_src-f19144dba4ac3b6ecf36dc1debefbcefe10ac5bb.tar.bz2
Remove the Exit menu item from the Wrench menu in Win/Ash.
Relanding after a revert in crrev.com/184662 due to accidentally disabling the Exit menu on non Win-Ash platforms. This patch is identical to patch set 4 in https://codereview.chromium.org/12330056/ BUG=176130 TEST=Metro/Ash chrome browsers lose their Exit menu item. TBR=cpu, sky Review URL: https://chromiumcodereview.appspot.com/12340110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_command_controller.cc')
-rw-r--r--chrome/browser/ui/browser_command_controller.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 4eb144b..3baaa8a 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -807,7 +807,12 @@ void BrowserCommandController::InitCommandState() {
command_updater_.UpdateCommandEnabled(IDC_CLOSE_TAB, true);
command_updater_.UpdateCommandEnabled(IDC_DUPLICATE_TAB, true);
command_updater_.UpdateCommandEnabled(IDC_RESTORE_TAB, false);
+#if defined(OS_WIN) && defined(USE_ASH)
+ if (browser_->host_desktop_type() != chrome::HOST_DESKTOP_TYPE_ASH)
+ command_updater_.UpdateCommandEnabled(IDC_EXIT, true);
+#else
command_updater_.UpdateCommandEnabled(IDC_EXIT, true);
+#endif
command_updater_.UpdateCommandEnabled(IDC_DEBUG_FRAME_TOGGLE, true);
#if defined(OS_WIN) && defined(USE_ASH) && !defined(NDEBUG)
if (base::win::GetVersion() < base::win::VERSION_WIN8 &&