diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 01:47:16 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 01:47:16 +0000 |
commit | b3edb31e6ec0a3a3a312718933e907f341606548 (patch) | |
tree | b9e73b4dd19be2535b13c1ab2b270d84dafbd910 /chrome/browser/google_url_tracker.cc | |
parent | 825ff8d48aee34b10ef6198743755b88c01a0e6b (diff) | |
download | chromium_src-b3edb31e6ec0a3a3a312718933e907f341606548.zip chromium_src-b3edb31e6ec0a3a3a312718933e907f341606548.tar.gz chromium_src-b3edb31e6ec0a3a3a312718933e907f341606548.tar.bz2 |
More NotificationRegistrar conversions.
BUG=2381
Review URL: http://codereview.chromium.org/115674
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_url_tracker.cc')
-rw-r--r-- | chrome/browser/google_url_tracker.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/google_url_tracker.cc b/chrome/browser/google_url_tracker.cc index 2e26147..8b60ae4 100644 --- a/chrome/browser/google_url_tracker.cc +++ b/chrome/browser/google_url_tracker.cc @@ -25,9 +25,8 @@ GoogleURLTracker::GoogleURLTracker() already_fetched_(false), need_to_fetch_(false), request_context_available_(!!Profile::GetDefaultRequestContext()) { - NotificationService::current()->AddObserver(this, - NotificationType::DEFAULT_REQUEST_CONTEXT_AVAILABLE, - NotificationService::AllSources()); + registrar_.Add(this, NotificationType::DEFAULT_REQUEST_CONTEXT_AVAILABLE, + NotificationService::AllSources()); // Because this function can be called during startup, when kicking off a URL // fetch can eat up 20 ms of time, we delay five seconds, which is hopefully @@ -42,9 +41,6 @@ GoogleURLTracker::GoogleURLTracker() } GoogleURLTracker::~GoogleURLTracker() { - NotificationService::current()->RemoveObserver(this, - NotificationType::DEFAULT_REQUEST_CONTEXT_AVAILABLE, - NotificationService::AllSources()); } // static |