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

Unified Diff: chrome/browser/ui/browser_win.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/browser_win.cc
diff --git a/chrome/browser/ui/browser_win.cc b/chrome/browser/ui/browser_win.cc
index f123e247adb0b34a3d8741abab11e4f5503c3fc2..60bae8832780b84474b530a73a6191f8114fac10 100644
--- a/chrome/browser/ui/browser_win.cc
+++ b/chrome/browser/ui/browser_win.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/fullscreen/fullscreen_controller.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
+#include "win8/util/win8_util.h"
namespace {
@@ -47,23 +48,19 @@ void NewMetroWindow(Browser* source_browser, Profile* profile) {
namespace chrome {
void NewWindow(Browser* browser) {
-#if !defined(USE_AURA)
- if (base::win::IsMetroProcess()) {
+ if (win8::IsSingleWindowMetroMode()) {
NewMetroWindow(browser, browser->profile()->GetOriginalProfile());
return;
}
-#endif
NewEmptyWindow(browser->profile()->GetOriginalProfile(),
browser->host_desktop_type());
}
void NewIncognitoWindow(Browser* browser) {
-#if !defined(USE_AURA)
- if (base::win::IsMetroProcess()) {
+ if (win8::IsSingleWindowMetroMode()) {
NewMetroWindow(browser, browser->profile()->GetOffTheRecordProfile());
return;
}
-#endif
NewEmptyWindow(browser->profile()->GetOffTheRecordProfile(),
browser->host_desktop_type());
}

Powered by Google App Engine
This is Rietveld 408576698