diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 23:01:34 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 23:01:34 +0000 |
commit | 09ff32419cb6527d68a20dcbfa74e9bfd0871711 (patch) | |
tree | 4c096ce18d8f1ab4222ea4ea07a7cedb5c40395d /chrome/browser/net | |
parent | 44663e9b848e824c969026fcfdf5c02ea66b3aa7 (diff) | |
download | chromium_src-09ff32419cb6527d68a20dcbfa74e9bfd0871711.zip chromium_src-09ff32419cb6527d68a20dcbfa74e9bfd0871711.tar.gz chromium_src-09ff32419cb6527d68a20dcbfa74e9bfd0871711.tar.bz2 |
Fix a NotificationObserver that crept in yesterday to use the NotificationRegistrar.
BUG=2381
Review URL: http://codereview.chromium.org/113790
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16813 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc index 12b305a..fced49f 100644 --- a/chrome/browser/net/chrome_url_request_context.cc +++ b/chrome/browser/net/chrome_url_request_context.cc @@ -313,9 +313,8 @@ ChromeURLRequestContext::ChromeURLRequestContext(Profile* profile) registrar_.Add(this, NotificationType::EXTENSIONS_LOADED, NotificationService::AllSources()); - NotificationService::current()->AddObserver( - this, NotificationType::EXTENSION_UNLOADED, - NotificationService::AllSources()); + registrar_.Add(this, NotificationType::EXTENSION_UNLOADED, + NotificationService::AllSources()); } // NotificationObserver implementation. @@ -370,9 +369,6 @@ void ChromeURLRequestContext::CleanupOnUIThread() { prefs_ = NULL; registrar_.RemoveAll(); - NotificationService::current()->RemoveObserver( - this, NotificationType::EXTENSION_UNLOADED, - NotificationService::AllSources()); } FilePath ChromeURLRequestContext::GetPathForExtension(const std::string& id) { |