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

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: 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 | « chrome/browser/ui/browser_win.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fc96ca64f6a80bc0362a78db7c2b665db991a5e2 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;
@@ -112,10 +112,10 @@ WebContents* OpenApplicationWindow(
Browser* browser = NULL;
#if defined(OS_WIN)
- // 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.
- if (base::win::IsMetroProcess()) {
+ // On Windows 8's single window Metro mode we don't allow multiple Chrome
+ // windows to be created. We instead attempt to reuse an existing Browser
+ // window.
+ if (win8::IsSingleWindowMetroMode()) {
browser = browser::FindBrowserWithProfile(
profile, chrome::HOST_DESKTOP_TYPE_NATIVE);
}
« no previous file with comments | « chrome/browser/ui/browser_win.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698