diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-07 02:21:15 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-07 02:21:15 +0000 |
commit | 4dd4224c9701c98a912bfd84dfcd24be2ce47d38 (patch) | |
tree | d4883c36bedc8ebd656052a169ea82492b2fa7d5 /chrome/browser/process_singleton_win.cc | |
parent | 240faaf618d2247aa7da87fab9360cac95c3ba38 (diff) | |
download | chromium_src-4dd4224c9701c98a912bfd84dfcd24be2ce47d38.zip chromium_src-4dd4224c9701c98a912bfd84dfcd24be2ce47d38.tar.gz chromium_src-4dd4224c9701c98a912bfd84dfcd24be2ce47d38.tar.bz2 |
Linux: fix startup race between creating the SingletonLock and listening on SingletonSocket.
BUG=39922
TEST=see bug
Review URL: http://codereview.chromium.org/1612006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/process_singleton_win.cc')
-rw-r--r-- | chrome/browser/process_singleton_win.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc index 4e8de16..09dec13 100644 --- a/chrome/browser/process_singleton_win.cc +++ b/chrome/browser/process_singleton_win.cc @@ -159,10 +159,10 @@ ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() { // For windows, there is no need to call Create() since the call is made in // the constructor but to avoid having more platform specific code in // browser_main.cc we tolerate a second call which will do nothing. -void ProcessSingleton::Create() { +bool ProcessSingleton::Create() { DCHECK(!remote_window_); if (window_) - return; + return true; HINSTANCE hinst = GetModuleHandle(NULL); @@ -185,6 +185,7 @@ void ProcessSingleton::Create() { DCHECK(window_); win_util::SetWindowUserData(window_, this); + return true; } void ProcessSingleton::Cleanup() { |