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

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

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename InMetroMode to IsMetroProcess. Cache and DCHECK in GetMetroModule. Created 8 years, 6 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
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 9f4abf07f81985296e8ba86629e14c1e08433d2e..d14cf890c66a4f6c18fb1bc2a40427137615b6bb 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
@@ -176,7 +176,7 @@ void ToolsMenuModel::Build(Browser* browser) {
#if defined(OS_WIN)
// In metro we can't display the task manager for now
// as it's a native window, so don't display the menu item.
- if (!base::win::GetMetroModule())
+ if (!base::win::IsMetroProcess())
AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER);
#else
AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER);

Powered by Google App Engine
This is Rietveld 408576698