summaryrefslogtreecommitdiffstats
path: root/chrome/browser/hang_monitor
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/hang_monitor
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/hang_monitor')
-rw-r--r--chrome/browser/hang_monitor/hung_window_detector.cc16
1 files changed, 8 insertions, 8 deletions
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);
}
}