Index: chrome/browser/google/google_url_tracker.cc |
diff --git a/chrome/browser/google/google_url_tracker.cc b/chrome/browser/google/google_url_tracker.cc |
index f0d81ff4a53cbe442d3de99d6375464563ef5d09..5f93554fc0ae05efedf3301636088277e3144cd2 100644 |
--- a/chrome/browser/google/google_url_tracker.cc |
+++ b/chrome/browser/google/google_url_tracker.cc |
@@ -102,19 +102,13 @@ void GoogleURLTracker::GoogleURLSearchCommitted(Profile* profile) { |
} |
void GoogleURLTracker::AcceptGoogleURL(bool redo_searches) { |
- UpdatedDetails urls(google_url_, fetched_google_url_); |
+ GURL old_google_url = google_url_; |
google_url_ = fetched_google_url_; |
PrefService* prefs = profile_->GetPrefs(); |
prefs->SetString(prefs::kLastKnownGoogleURL, google_url_.spec()); |
prefs->SetString(prefs::kLastPromptedGoogleURL, google_url_.spec()); |
- NotifyGoogleURLUpdated(urls.first, urls.second); |
- |
- // TODO(blundell): Convert all clients to use the callback interface and |
- // eliminate this notification. crbug.com/373237 |
- content::NotificationService::current()->Notify( |
- chrome::NOTIFICATION_GOOGLE_URL_UPDATED, |
- content::Source<Profile>(profile_), |
- content::Details<UpdatedDetails>(&urls)); |
+ NotifyGoogleURLUpdated(old_google_url, google_url_); |
+ |
need_to_prompt_ = false; |
CloseAllEntries(redo_searches); |
} |