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

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 12330056: Remove the Exit menu item from the Wrench menu in Win/Ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't remove Exit menu item from non win-ash platforms. Created 7 years, 10 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 | « chrome/browser/ui/browser_command_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/wrench_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.cc b/chrome/browser/ui/toolbar/wrench_menu_model.cc
index 2ee902ca3b09d28fc5f7da31cff253bd034a73f3..4413f405ed0140f75ce44f2ac7ef05f826406a28 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
@@ -613,7 +613,12 @@ void WrenchMenuModel::Build(bool is_new_menu, bool supports_new_separators) {
tools_menu_model_.get());
}
- if (browser_defaults::kShowExitMenuItem) {
+ bool show_exit_menu = browser_defaults::kShowExitMenuItem;
+#if defined(OS_WIN) && defined(USE_AURA)
+ if (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH)
+ show_exit_menu = false;
+#endif
+ if (show_exit_menu) {
AddSeparator(ui::NORMAL_SEPARATOR);
AddItemWithStringId(IDC_EXIT, IDS_EXIT);
}
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698