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

Unified Diff: chrome/browser/shell_integration_win.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/shell_integration_win.cc
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index 429649fcd8f7dbb7233c208cc0757b4d66c31713..06dcc93b1b4778489ffcdda0f4e31e0f76acdfbb 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -394,7 +394,7 @@ bool ActivateApplication(const string16& app_id) {
// Not supported when running in metro mode.
// TODO(grt) This should perhaps check that this Chrome isn't in metro mode
// or, if it is, that |app_id| doesn't identify this Chrome.
- if (base::win::GetMetroModule())
+ if (base::win::IsMetroProcess())
return false;
// Delegate to metro_driver, which has the brains to invoke the activation

Powered by Google App Engine
This is Rietveld 408576698