summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_plugin_browsing_context.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 01:53:18 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 01:53:18 +0000
commitf235af60b9764f7e9a2211e60c3242757816eddd (patch)
treed94c0925a2f733f794a40119ea468a1c79c6a1f7 /chrome/browser/chrome_plugin_browsing_context.cc
parentf987e3dacf6a2aa203f0f7b9d6e9b01c2e782fcc (diff)
downloadchromium_src-f235af60b9764f7e9a2211e60c3242757816eddd.zip
chromium_src-f235af60b9764f7e9a2211e60c3242757816eddd.tar.gz
chromium_src-f235af60b9764f7e9a2211e60c3242757816eddd.tar.bz2
Use a NotificationRegistrar to listen for notifications.
BUG=2381 Review URL: http://codereview.chromium.org/115676 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_plugin_browsing_context.cc')
-rw-r--r--chrome/browser/chrome_plugin_browsing_context.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/chrome_plugin_browsing_context.cc b/chrome/browser/chrome_plugin_browsing_context.cc
index 8845c36..71dc80d 100644
--- a/chrome/browser/chrome_plugin_browsing_context.cc
+++ b/chrome/browser/chrome_plugin_browsing_context.cc
@@ -21,14 +21,11 @@ CPBrowsingContextManager* CPBrowsingContextManager::Instance() {
}
CPBrowsingContextManager::CPBrowsingContextManager() {
- NotificationService::current()->AddObserver(
- this, NotificationType::URL_REQUEST_CONTEXT_RELEASED,
- NotificationService::AllSources());
+ registrar_.Add(this, NotificationType::URL_REQUEST_CONTEXT_RELEASED,
+ NotificationService::AllSources());
}
CPBrowsingContextManager::~CPBrowsingContextManager() {
- // We don't remove ourselves as an observer because we are a Singleton object,
- // and NotifcationService is likely gone by this point.
}
CPBrowsingContext CPBrowsingContextManager::Allocate(