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

Unified Diff: win8/util/win8_util.cc

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: keep base/win/metro.h in omnibox_view_win.cc for IsTSFAwareRequired() Created 8 years 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 | « win8/util/win8_util.h ('k') | win8/win8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/util/win8_util.cc
diff --git a/win8/util/win8_util.cc b/win8/util/win8_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c22821504cbea554ae605e1bcbc56d761ed21aa1
--- /dev/null
+++ b/win8/util/win8_util.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "win8/util/win8_util.h"
+
+#include "base/win/metro.h"
+
+namespace win8 {
+
+bool IsSingleWindowMetroMode() {
+#if defined(USE_ASH)
+ return false;
+#else
+ return base::win::IsMetroProcess();
+#endif
+}
+
+} // namespace win8
« no previous file with comments | « win8/util/win8_util.h ('k') | win8/win8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698