Fix a recent regression which caused the Windows 8 Chrome Ash viewer process to fail to connect to the chrome browser process.
Fix is to invoke the PlatformSpecificCommandLineProcessing function in the BrowserProcess instance if we fail to find an existing
browser process to defer to.
BUG=151718
R=cpu
Review URL: https://codereview.chromium.org/11464030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171866 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc
index 12ca2f6..a4694ee 100644
--- a/chrome/browser/process_singleton_win.cc
+++ b/chrome/browser/process_singleton_win.cc
@@ -316,8 +316,6 @@
if (lock_file_ == INVALID_HANDLE_VALUE && !remote_window_) {
return LOCK_ERROR;
} else if (!remote_window_) {
- g_browser_process->PlatformSpecificCommandLineProcessing(
- *CommandLine::ForCurrentProcess());
return PROCESS_NONE;
}
@@ -431,6 +429,9 @@
result = NotifyOtherProcess();
if (result == PROCESS_NONE)
result = PROFILE_IN_USE;
+ } else {
+ g_browser_process->PlatformSpecificCommandLineProcessing(
+ *CommandLine::ForCurrentProcess());
}
return result;
}