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

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

Issue 10836209: Don't show the exit command in the wrench menu when running in Metro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | 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 adb997e9d70c0e2d0300a0c89d81a210fb8e24cd..2ae71b9b8bf4b9123a8b4771c34f563648727fa8 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
@@ -548,8 +548,13 @@ void WrenchMenuModel::Build() {
}
if (browser_defaults::kShowExitMenuItem) {
- AddSeparator();
- AddItemWithStringId(IDC_EXIT, IDS_EXIT);
+#if defined(OS_WIN)
+ if (!base::win::IsMetroProcess())
+#endif
+ {
+ AddSeparator();
+ AddItemWithStringId(IDC_EXIT, IDS_EXIT);
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698