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

Unified Diff: chrome/browser/ui/extensions/application_launch.cc

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge up to r170746 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/ui/extensions/application_launch.cc
diff --git a/chrome/browser/ui/extensions/application_launch.cc b/chrome/browser/ui/extensions/application_launch.cc
index 45d5b7970950b6f2dc303196b2bef2e507f6cd5d..bfb1139628315d79806b23c8d7235b164d19b807 100644
--- a/chrome/browser/ui/extensions/application_launch.cc
+++ b/chrome/browser/ui/extensions/application_launch.cc
@@ -30,7 +30,7 @@
#include "ui/gfx/rect.h"
#if defined(OS_WIN)
-#include "base/win/metro.h"
+#include "win8/util/win8_util.h"
#endif
using content::WebContents;
@@ -115,7 +115,7 @@ WebContents* OpenApplicationWindow(
// In Chrome on Windows 8 in metro mode we don't allow multiple chrome
// windows to be created, as we don't have a good way to switch between
// them. We attempt to reuse an existing Browser window.
cpu_(ooo_6.6-7.5) 2012/12/03 20:56:26 comment needs rewording
gab 2012/12/04 00:19:06 Done.
- if (base::win::IsMetroProcess()) {
+ if (win8::IsSingleWindowMetroMode()) {
browser = browser::FindBrowserWithProfile(
profile, chrome::HOST_DESKTOP_TYPE_NATIVE);
}

Powered by Google App Engine
This is Rietveld 408576698