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

Unified Diff: chrome/browser/browser_main.cc

Issue 7134007: Added command line switches "crash-on-hang-threads" and "crash-on-hang-seconds" (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | chrome/browser/metrics/thread_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 89361)
+++ chrome/browser/browser_main.cc (working copy)
@@ -1437,11 +1437,6 @@
scoped_refptr<HistogramSynchronizer> histogram_synchronizer(
new HistogramSynchronizer());
- // Initialize thread watcher system. This is a singleton and is used by
- // WatchDogThread to keep track of information about threads that are being
- // watched.
- scoped_ptr<ThreadWatcherList> thread_watcher_list(new ThreadWatcherList());
-
// Now the command line has been mutated based on about:flags, we can
// set up metrics and initialize field trials.
MetricsService* metrics = parts->SetupMetricsAndFieldTrials(
@@ -1893,7 +1888,7 @@
}
// Start watching all browser threads for responsiveness.
- ThreadWatcherList::StartWatchingAll();
+ ThreadWatcherList::StartWatchingAll(parsed_command_line);
int result_code = ResultCodes::NORMAL_EXIT;
if (parameters.ui_task) {
« no previous file with comments | « no previous file | chrome/browser/metrics/thread_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698