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

Unified Diff: ui/base/layout.cc

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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 368a395e05bf97a9fd3ec1c8a6d2be6c60f9adb5..3b0446e1246830486753446ff17c6df7bdd24ac8 100644
--- a/ui/base/layout.cc
+++ b/ui/base/layout.cc
@@ -45,7 +45,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::IsMetroProcess();
#elif defined(USE_AURA) && defined(USE_X11)
// Determine whether touch-screen hardware is currently available.
// For now we must ensure this won't change over the life of the process,
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/views/controls/textfield/native_textfield_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698