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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_win.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/panels/panel_manager.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/startup/startup_browser_creator_win.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_win.cc b/chrome/browser/ui/startup/startup_browser_creator_win.cc
index aa2274c9c7a726d6f3db4256145434d3b4613741..661ce4368301362e99ef4feb6d02f342c8f7e553 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_win.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_win.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/startup/startup_browser_creator_impl.h"
#include "chrome/common/url_constants.h"
+#include "win8/util/win8_util.h"
namespace chrome {
@@ -45,7 +46,7 @@ GURL GetURLToOpen(Profile* profile) {
bool StartupBrowserCreatorImpl::OpenStartupURLsInExistingBrowser(
Profile* profile,
const std::vector<GURL>& startup_urls) {
- if (!base::win::IsMetroProcess())
+ if (!win8::IsSingleWindowMetroMode())
return false;
// We activate an existing browser window if we are opening just the new tab
@@ -66,4 +67,3 @@ bool StartupBrowserCreatorImpl::OpenStartupURLsInExistingBrowser(
return true;
}
#endif
-
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698