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

Unified Diff: chrome/browser/extensions/api/tabs/tabs.cc

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename InMetroMode to IsMetroProcess. Cache and DCHECK in GetMetroModule. Created 8 years, 6 months 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/api/tabs/tabs.cc
diff --git a/chrome/browser/extensions/api/tabs/tabs.cc b/chrome/browser/extensions/api/tabs/tabs.cc
index da0a2461bf032b7a97db426bbaf90c23d0057e28..38c2652771655d0c74c1368fe3712ba833cafbef 100644
--- a/chrome/browser/extensions/api/tabs/tabs.cc
+++ b/chrome/browser/extensions/api/tabs/tabs.cc
@@ -227,7 +227,7 @@ Browser* CreateBrowserWindow(const Browser::CreateParams& params,
#if defined(OS_WIN)
// In Windows 8 metro mode we only allow new windows to be created if the
// extension id is valid in which case it is created as an application window
- if (extension_id.empty() && base::win::GetMetroModule())
+ if (extension_id.empty() && base::win::IsMetroProcess())
use_existing_browser_window = true;
#endif // OS_WIN

Powered by Google App Engine
This is Rietveld 408576698