summaryrefslogtreecommitdiffstats
path: root/chrome/browser/process_singleton_win.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 07:04:35 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 07:04:35 +0000
commitea392a6705010fe7d2ceec3980bf5df39aaf2f82 (patch)
tree36d54897f7daae79295620ba0eedfe527fdf20f2 /chrome/browser/process_singleton_win.cc
parent278f81c31b6e9ed5b87a826804426dea3dc4d5d7 (diff)
downloadchromium_src-ea392a6705010fe7d2ceec3980bf5df39aaf2f82.zip
chromium_src-ea392a6705010fe7d2ceec3980bf5df39aaf2f82.tar.gz
chromium_src-ea392a6705010fe7d2ceec3980bf5df39aaf2f82.tar.bz2
Reverting 21943.
Broke valgrind ui_tests Review URL: http://codereview.chromium.org/160320 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/process_singleton_win.cc')
-rw-r--r--chrome/browser/process_singleton_win.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/process_singleton_win.cc b/chrome/browser/process_singleton_win.cc
index 74e1d51..a02becc 100644
--- a/chrome/browser/process_singleton_win.cc
+++ b/chrome/browser/process_singleton_win.cc
@@ -78,6 +78,8 @@ bool ProcessSingleton::NotifyOtherProcess() {
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));
@@ -88,7 +90,7 @@ bool ProcessSingleton::NotifyOtherProcess() {
NULL,
reinterpret_cast<LPARAM>(&cds),
SMTO_ABORTIFHUNG,
- kTimeoutInSeconds * 1000,
+ kTimeout,
&result)) {
// It is possible that the process owning this window may have died by now.
if (!result) {