Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: chrome/browser/process_singleton_win.cc

Issue 155772: This CL implements the second TODO item of issue 12343:... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/process_singleton_linux_uitest.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/process_singleton_linux_uitest.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698