diff options
author | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 21:41:56 +0000 |
---|---|---|
committer | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-01 21:41:56 +0000 |
commit | 78b048e2ba0abe8b8c3ba00f03f6ff54cb76dcaf (patch) | |
tree | 3ce142f2a6a0d409d93bb802bdd725731ad4d6c6 /chrome/common/notification_registrar.h | |
parent | 941e455373dbbe837fe2e82d139af4dec1d35ddb (diff) | |
download | chromium_src-78b048e2ba0abe8b8c3ba00f03f6ff54cb76dcaf.zip chromium_src-78b048e2ba0abe8b8c3ba00f03f6ff54cb76dcaf.tar.gz chromium_src-78b048e2ba0abe8b8c3ba00f03f6ff54cb76dcaf.tar.bz2 |
Add per-observer instrumenting code to NotificationRegistrar.
TEST=All current tests pass
BUG=31078
Review URL: http://codereview.chromium.org/554130
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37744 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/notification_registrar.h')
-rw-r--r-- | chrome/common/notification_registrar.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/common/notification_registrar.h b/chrome/common/notification_registrar.h index 7f6956a..3d71783 100644 --- a/chrome/common/notification_registrar.h +++ b/chrome/common/notification_registrar.h @@ -40,7 +40,8 @@ class NotificationRegistrar { bool IsEmpty() const; private: - void CheckCalledOnValidWellKnownThread(); + ChromeThread::ID GetCurrentThreadIdentifier(); + void CheckCalledOnValidWellKnownThread(ChromeThread::ID thread_id); struct Record; @@ -53,9 +54,6 @@ class NotificationRegistrar { // Lists all notifications we're currently registered for. RecordVector registered_; - // The thread creating this object. - ChromeThread::ID thread_id_; - DISALLOW_COPY_AND_ASSIGN(NotificationRegistrar); }; |