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

Unified Diff: chrome/browser/extensions/extension_prefs.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
Index: chrome/browser/extensions/extension_prefs.cc
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index 346133dce690ee6a59a9c85cbbf9a63e2ab63867..749f4bcf26a6d523cf249f0f8184dad58e612c1f 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -31,7 +31,7 @@
#include "ui/base/l10n/l10n_util.h"
#if defined(OS_WIN)
-#include "base/win/metro.h"
+#include "win8/util/win8_util.h"
#endif // OS_WIN
namespace extensions {
@@ -1222,8 +1222,8 @@ ExtensionPrefs::LaunchType ExtensionPrefs::GetLaunchType(
#endif
#if defined(OS_WIN)
- // We don't support app windows in windows 8 metro mode.
- if (base::win::IsMetroProcess() && result == LAUNCH_WINDOW)
+ // We don't support app windows in Windows 8 single window Metro mode.
+ if (win8::IsSingleWindowMetroMode() && result == LAUNCH_WINDOW)
result = LAUNCH_REGULAR;
#endif // OS_WIN
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs.cc ('k') | chrome/browser/notifications/desktop_notification_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698