From 78b048e2ba0abe8b8c3ba00f03f6ff54cb76dcaf Mon Sep 17 00:00:00 2001 From: "huanr@chromium.org" <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Mon, 1 Feb 2010 21:41:56 +0000 Subject: 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 --- chrome/common/notification_registrar.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chrome/common/notification_registrar.h') 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); }; -- cgit v1.1