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

Unified Diff: chrome/browser/metrics/thread_watcher.cc

Issue 6990061: Force a crash of the browser if IO thread hasn't responded (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/thread_watcher.cc
===================================================================
--- chrome/browser/metrics/thread_watcher.cc (revision 86006)
+++ chrome/browser/metrics/thread_watcher.cc (working copy)
@@ -269,10 +269,10 @@
// Crash the browser if IO thread hasn't responded atleast kUnresponsiveCount
// times and if the number of other threads is equal to 1. We picked 1 to
// reduce the number of crashes and to get some sample data.
- // if (thread_id_ == BrowserThread::IO && no_of_responding_threads == 1) {
- // int* crash = NULL;
- // CHECK(crash++);
- // }
+ if (thread_id_ == BrowserThread::IO && no_of_responding_threads == 1) {
+ int* crash = NULL;
+ CHECK(crash++);
+ }
hung_processing_complete_ = true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698