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

Unified Diff: chrome/browser/chrome_thread.cc

Issue 449044: Adding instrument to NotificationRegistrar to check... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/chrome_thread.h ('k') | chrome/common/notification_registrar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_thread.cc
===================================================================
--- chrome/browser/chrome_thread.cc (revision 33330)
+++ chrome/browser/chrome_thread.cc (working copy)
@@ -59,6 +59,13 @@
}
// static
+bool ChromeThread::IsWellKnownThread(ID identifier) {
+ AutoLock lock(lock_);
+ return (identifier >= 0 && identifier < ID_COUNT &&
+ chrome_threads_[identifier]);
+}
+
+// static
bool ChromeThread::CurrentlyOn(ID identifier) {
AutoLock lock(lock_);
DCHECK(identifier >= 0 && identifier < ID_COUNT);
« no previous file with comments | « chrome/browser/chrome_thread.h ('k') | chrome/common/notification_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698