Chromium Code Reviews| Index: chrome/browser/process_singleton.h |
| =================================================================== |
| --- chrome/browser/process_singleton.h (revision 76859) |
| +++ chrome/browser/process_singleton.h (working copy) |
| @@ -78,6 +78,16 @@ |
| int timeout_seconds); |
| #endif // defined(OS_LINUX) |
| +#if defined(OS_WIN) |
| + // Used in specific cases to let us know that there an existing instance |
|
Finnur
2011/03/07 22:35:10
nit: s/an/is an/
|
| + // of chrome running with this profile. In general, you should not use this |
|
Finnur
2011/03/07 22:35:10
nit: s/chrome/Chrome/
|
| + // function. Instead consider using NotifyOtherProcessOrCreate(). |
| + // For non profile-specific method, use Upgrade::IsBrowserAlreadyRunning(). |
| + bool FoundOtherProcessWindow() const { |
| + return (NULL != remote_window_); |
| + } |
| +#endif // defined(OS_WIN) |
| + |
| // Sets ourself up as the singleton instance. Returns true on success. If |
| // false is returned, we are not the singleton instance and the caller must |
| // exit. |