summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authoriyengar@google.com <iyengar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 23:51:53 +0000
committeriyengar@google.com <iyengar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 23:51:53 +0000
commit9e3ed3b69a5a25affab3acc41921606847c6dc13 (patch)
tree91ed94bbcbfaadc6926ad13ed227a2baf9a85fb0 /chrome/browser
parent3039e8499d9e67b0f9d59f0c0c4a6fe541e073c5 (diff)
downloadchromium_src-9e3ed3b69a5a25affab3acc41921606847c6dc13.zip
chromium_src-9e3ed3b69a5a25affab3acc41921606847c6dc13.tar.gz
chromium_src-9e3ed3b69a5a25affab3acc41921606847c6dc13.tar.bz2
Bumping up the default hung plugin timeout to 30 seconds. This matches with
the hung webpage timeout. The other change is to take out the IsHungAppWindow call as this is redundant when combined with SendMessageTimeout. Bug=1308327 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1411 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/browser.cc2
-rw-r--r--chrome/browser/hang_monitor/hung_window_detector.cc16
2 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 2cc725d..d383484 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -68,7 +68,7 @@ static const int kWindowTilePixels = 20;
static const int kDefaultHungPluginDetectFrequency = 2000;
// How long do we wait before we consider a window hung (in ms).
-static const int kDefaultPluginMessageResponseTimeout = 10000;
+static const int kDefaultPluginMessageResponseTimeout = 30000;
////////////////////////////////////////////////////////////////////////////////
diff --git a/chrome/browser/hang_monitor/hung_window_detector.cc b/chrome/browser/hang_monitor/hung_window_detector.cc
index e602438..6f255b3 100644
--- a/chrome/browser/hang_monitor/hung_window_detector.cc
+++ b/chrome/browser/hang_monitor/hung_window_detector.cc
@@ -89,14 +89,13 @@ bool HungWindowDetector::CheckChildWindow(HWND child_window) {
}
DWORD result = 0;
- if ((0 == SendMessageTimeout(child_window,
- WM_NULL,
- 0,
- 0,
- SMTO_BLOCK,
- child_window_message_timeout,
- &result)) ||
- IsHungAppWindow(child_window)) {
+ if (0 == SendMessageTimeout(child_window,
+ WM_NULL,
+ 0,
+ 0,
+ SMTO_BLOCK,
+ child_window_message_timeout,
+ &result)) {
HungWindowNotification::ActionOnHungWindow action =
HungWindowNotification::HUNG_WINDOW_IGNORE;
#pragma warning(disable:4312)
@@ -155,6 +154,7 @@ bool HungWindowDetector::CheckChildWindow(HWND child_window) {
}
}
} else {
+ DCHECK(IsHungAppWindow(child_window) == false);
RemoveProp(child_window, kHungChildWindowTimeout);
}
}