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

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

Issue 10700080: Prevent code folding in the ThreadWatcher ThreadUnresponsive_X functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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
diff --git a/chrome/browser/metrics/thread_watcher.cc b/chrome/browser/metrics/thread_watcher.cc
index d2b62532fed08b67b75d19ed4de906b850cba280..341e3fc0daff76948df14d42ad37b53a0caf69e1 100644
--- a/chrome/browser/metrics/thread_watcher.cc
+++ b/chrome/browser/metrics/thread_watcher.cc
@@ -40,35 +40,35 @@ MSVC_PUSH_DISABLE_WARNING(4748)
#endif
void ThreadUnresponsive_UI() {
- CHECK(false);
+ CHECK(false) << __FUNCTION__;
eroman 2012/07/03 19:00:38 I am slightly surprised that CHECK(false) doesn't
Robert Sesek 2012/07/10 18:43:09 In official release builds, it looks like CHECK()
jar (doing other things) 2012/07/10 20:05:23 Reading the header file, it appears that they disc
}
void ThreadUnresponsive_DB() {
- CHECK(false);
+ CHECK(false) << __FUNCTION__;
}
void ThreadUnresponsive_WEBKIT() {
- CHECK(false);
+ CHECK(false) << __FUNCTION__;
}
void ThreadUnresponsive_FILE() {
- CHECK(false);
+ CHECK(false) << __FUNCTION__;
}
void ThreadUnresponsive_FILE_USER_BLOCKING() {
- CHECK(false);
+ CHECK(false) << __FUNCTION__;
}
void ThreadUnresponsive_PROCESS_LAUNCHER() {
- CHECK(false);
+ CHECK(false) << __FUNCTION__;
}
void ThreadUnresponsive_CACHE() {
- CHECK(false);
+ CHECK(false) << __FUNCTION__;
}
void ThreadUnresponsive_IO() {
- CHECK(false);
+ CHECK(false) << __FUNCTION__;
}
#if defined(COMPILER_MSVC)
@@ -104,7 +104,7 @@ void CrashBecauseThreadWasUnresponsive(BrowserThread::ID thread_id) {
// should warn if our switch becomes outdated.
}
- CHECK(false); // Shouldn't be reached.
+ CHECK(false) << "Unknown thread was unresponsive."; // Shouldn't be reached.
}
} // namespace
« 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