Win: Fix race possible during startup before first Browser is created.
BUG=38572
TEST=uitest, also "chrome/Debug/chrome.exe & chrome/Debug/chrome.exe"
Review URL: http://codereview.chromium.org/2664004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49348 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc
index 6454f667..3f7dd84 100644
--- a/chrome/browser/process_singleton_win.cc
+++ b/chrome/browser/process_singleton_win.cc
@@ -200,9 +200,7 @@
LRESULT ProcessSingleton::OnCopyData(HWND hwnd, const COPYDATASTRUCT* cds) {
// If locked, it means we are not ready to process this message because
- // we are probably in a first run critical phase. We must do this before
- // doing the IsShuttingDown() check since that returns true during first run
- // (since g_browser_process hasn't been AddRefModule()d yet).
+ // we are probably in a first run critical phase.
if (locked_) {
// Attempt to place ourselves in the foreground / flash the task bar.
if (IsWindow(foreground_window_))