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

Unified Diff: ui/base/layout.cc

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: ui/base/layout.cc
diff --git a/ui/base/layout.cc b/ui/base/layout.cc
index 36614fa825b3f2bb5dab8c7e7e70c6277d01e008..6bce4d2884926568bd1ebef4cf82d42c64d407cf 100644
--- a/ui/base/layout.cc
+++ b/ui/base/layout.cc
@@ -44,7 +44,7 @@ bool UseTouchOptimizedUI() {
#if defined(OS_WIN)
// On Windows, we use the touch layout only when we are running in
// Metro mode.
- return base::win::GetMetroModule() != NULL;
+ return base::win::InMetroMode();
#elif defined(USE_AURA) && defined(USE_X11)
// Determine whether touch-screen hardware is currently available.
// For now we assume this won't change over the life of the process, but

Powered by Google App Engine
This is Rietveld 408576698