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

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

Issue 8366020: Create a secondary file thread, FILE_USER_BLOCKING... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Index: chrome/browser/metrics/thread_watcher.cc
===================================================================
--- chrome/browser/metrics/thread_watcher.cc (revision 113054)
+++ chrome/browser/metrics/thread_watcher.cc (working copy)
@@ -55,6 +55,10 @@
CHECK(false);
}
+void ThreadUnresponsive_FILE_USER_BLOCKING() {
+ CHECK(false);
+}
+
void ThreadUnresponsive_PROCESS_LAUNCHER() {
CHECK(false);
}
@@ -88,6 +92,8 @@
return ThreadUnresponsive_WEBKIT();
case BrowserThread::FILE:
return ThreadUnresponsive_FILE();
+ case BrowserThread::FILE_USER_BLOCKING:
+ return ThreadUnresponsive_FILE_USER_BLOCKING();
case BrowserThread::PROCESS_LAUNCHER:
return ThreadUnresponsive_PROCESS_LAUNCHER();
case BrowserThread::CACHE:
@@ -583,6 +589,10 @@
StartWatching(BrowserThread::FILE, "FILE", kSleepTime, kUnresponsiveTime,
unresponsive_threshold, crash_on_hang_thread_names,
live_threads_threshold);
+ StartWatching(BrowserThread::FILE_USER_BLOCKING, "FILE_USER_BLOCKING",
+ kSleepTime, kUnresponsiveTime,
+ unresponsive_threshold, crash_on_hang_thread_names,
+ live_threads_threshold);
StartWatching(BrowserThread::CACHE, "CACHE", kSleepTime, kUnresponsiveTime,
unresponsive_threshold, crash_on_hang_thread_names,
live_threads_threshold);
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | content/browser/appcache/chrome_appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698