| Index: chrome/browser/google/google_url_tracker.h
|
| diff --git a/chrome/browser/google/google_url_tracker.h b/chrome/browser/google/google_url_tracker.h
|
| index 32ef06c4b56284d8e6dff31760f3a489e3be72d8..f3a42ef9890583325178f5fe4fa45d719c66309f 100644
|
| --- a/chrome/browser/google/google_url_tracker.h
|
| +++ b/chrome/browser/google/google_url_tracker.h
|
| @@ -39,9 +39,9 @@ class InfoBar;
|
| //
|
| // Most consumers should only call GoogleURL(), which is guaranteed to
|
| // synchronously return a value at all times (even during startup or in unittest
|
| -// mode). Consumers who need to be notified when things change should listen to
|
| -// the notification service for NOTIFICATION_GOOGLE_URL_UPDATED, which provides
|
| -// the original and updated values.
|
| +// mode). Consumers who need to be notified when things change should register
|
| +// a callback that provides the original and updated values via
|
| +// RegisterCallback().
|
| //
|
| // To protect users' privacy and reduce server load, no updates will be
|
| // performed (ever) unless at least one consumer registers interest by calling
|
| @@ -56,9 +56,6 @@ class GoogleURLTracker : public net::URLFetcherDelegate,
|
| typedef base::CallbackList<void(GURL, GURL)> CallbackList;
|
| typedef CallbackList::Subscription Subscription;
|
|
|
| - // The contents of the Details for a NOTIFICATION_GOOGLE_URL_UPDATED.
|
| - typedef std::pair<GURL, GURL> UpdatedDetails;
|
| -
|
| // The constructor does different things depending on which of these values
|
| // you pass it. Hopefully these are self-explanatory.
|
| enum Mode {
|
| @@ -211,8 +208,8 @@ class GoogleURLTracker : public net::URLFetcherDelegate,
|
| bool need_to_fetch_; // True if a consumer actually wants us to fetch an
|
| // updated URL. If this is never set, we won't
|
| // bother to fetch anything.
|
| - // Consumers should observe
|
| - // chrome::NOTIFICATION_GOOGLE_URL_UPDATED.
|
| + // Consumers should register a callback via
|
| + // RegisterCallback().
|
| bool need_to_prompt_; // True if the last fetched Google URL is not
|
| // matched with current user's default Google URL
|
| // nor the last prompted Google URL.
|
|
|