| Index: chrome/browser/process_singleton_win.cc
|
| ===================================================================
|
| --- chrome/browser/process_singleton_win.cc (版本 21941)
|
| +++ chrome/browser/process_singleton_win.cc (工作副本)
|
| @@ -20,6 +20,8 @@
|
| #include "grit/chromium_strings.h"
|
| #include "grit/generated_resources.h"
|
|
|
| +const int ProcessSingleton::kTimeoutInSeconds;
|
| +
|
| namespace {
|
|
|
| // Checks the visibility of the enumerated window and signals once a visible
|
| @@ -78,8 +80,6 @@
|
|
|
| AllowSetForegroundWindow(process_id);
|
|
|
| - // Gives 20 seconds timeout for the current browser process to respond.
|
| - const int kTimeout = 20000;
|
| COPYDATASTRUCT cds;
|
| cds.dwData = 0;
|
| cds.cbData = static_cast<DWORD>((to_send.length() + 1) * sizeof(wchar_t));
|
| @@ -90,7 +90,7 @@
|
| NULL,
|
| reinterpret_cast<LPARAM>(&cds),
|
| SMTO_ABORTIFHUNG,
|
| - kTimeout,
|
| + kTimeoutInSeconds * 1000,
|
| &result)) {
|
| // It is possible that the process owning this window may have died by now.
|
| if (!result) {
|
|
|