summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_thread.h
diff options
context:
space:
mode:
authorhuanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 07:04:07 +0000
committerhuanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 07:04:07 +0000
commit2e7b6282c22188eb4406e9c08ca9a56bac01f047 (patch)
tree70f862c67c0b2b2850659f050929544e0ca33757 /chrome/browser/chrome_thread.h
parentc984666719a722d4a3666068528cf35f2042d081 (diff)
downloadchromium_src-2e7b6282c22188eb4406e9c08ca9a56bac01f047.zip
chromium_src-2e7b6282c22188eb4406e9c08ca9a56bac01f047.tar.gz
chromium_src-2e7b6282c22188eb4406e9c08ca9a56bac01f047.tar.bz2
Adding instrument to NotificationRegistrar to check
Add() and Remove() are called from same thread. Note I already checked in a fix for the bug. The CL is trying to check whether the issue exists in other code path. TEST=none BUG=27834 Review URL: http://codereview.chromium.org/449044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33802 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_thread.h')
-rw-r--r--chrome/browser/chrome_thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/chrome_thread.h b/chrome/browser/chrome_thread.h
index e890790..a8fe44b 100644
--- a/chrome/browser/chrome_thread.h
+++ b/chrome/browser/chrome_thread.h
@@ -114,6 +114,10 @@ class ChromeThread : public base::Thread {
identifier, from_here, new ReleaseTask<T>(object));
}
+ // Callable on any thread. Returns whether the given ID corresponds to a well
+ // known thread.
+ static bool IsWellKnownThread(ID identifier);
+
// Callable on any thread. Returns whether you're currently on a particular
// thread.
static bool CurrentlyOn(ID identifier);