Commit 029ed3e3 authored by mad@chromium.org's avatar mad@chromium.org

Don't show the exit command in the wrench menu when running in Metro


BUG=140117
TEST=The exit wrench menu option should be removed when running in Metro, yet available otherwise.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151314 0039d316-1c4b-4281-b951-d872f2087c98
parent 1bb2cf69
......@@ -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);
}
}
}
......
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