Index: chrome/browser/chrome_process_finder_win.cc |
diff --git a/chrome/browser/chrome_process_finder_win.cc b/chrome/browser/chrome_process_finder_win.cc |
index da0f7aeede3da76ee6c968e0d21df96517a75158..3d5ea0a7f17c84a1334c9fbb01ec63ce56c7e608 100644 |
--- a/chrome/browser/chrome_process_finder_win.cc |
+++ b/chrome/browser/chrome_process_finder_win.cc |
@@ -112,6 +112,7 @@ NotifyChromeResult AttemptToNotifyRunningChrome(HWND remote_window, |
if (!thread_id || !process_id) |
return NOTIFY_FAILED; |
+#if !defined(USE_AURA) |
if (base::win::IsMetroProcess()) { |
// Interesting corner case. We are launched as a metro process but we |
// found another chrome running. Since metro enforces single instance then |
@@ -140,10 +141,11 @@ NotifyChromeResult AttemptToNotifyRunningChrome(HWND remote_window, |
if (base::win::GetVersion() >= base::win::VERSION_WIN8 && |
base::OpenProcessHandleWithAccess( |
process_id, PROCESS_QUERY_INFORMATION, |
- process_handle.Receive()) && |
- base::win::IsProcessImmersive(process_handle.Get())) { |
- chrome::ActivateMetroChrome(); |
+ process_handle.Receive())) { |
+ if (base::win::IsProcessImmersive(process_handle.Get())) |
rvargas (doing something else)
2013/11/05 21:07:29
A short comment about not mixing the two if statem
|
+ chrome::ActivateMetroChrome(); |
} |
+#endif |
CommandLine command_line(*CommandLine::ForCurrentProcess()); |
command_line.AppendSwitchASCII( |