Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2701)

Unified Diff: chrome/browser/google/google_url_tracker.h

Issue 11620007: Switch from OnIPAddressChanged and OnConnectionTypeChange to OnNetworkChanged Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 620f12dfb3c3329b5f48ddc6a4982c4b5c5e5ec8..9c4289b36c0ef29eb806ada410abd3ce5836ad3b 100644
--- a/chrome/browser/google/google_url_tracker.h
+++ b/chrome/browser/google/google_url_tracker.h
@@ -41,10 +41,11 @@ class WebContents;
// To protect users' privacy and reduce server load, no updates will be
// performed (ever) unless at least one consumer registers interest by calling
// RequestServerCheck().
-class GoogleURLTracker : public net::URLFetcherDelegate,
- public content::NotificationObserver,
- public net::NetworkChangeNotifier::IPAddressObserver,
- public ProfileKeyedService {
+class GoogleURLTracker
+ : public net::URLFetcherDelegate,
+ public content::NotificationObserver,
+ public net::NetworkChangeNotifier::NetworkChangeObserver,
+ public ProfileKeyedService {
public:
// The contents of the Details for a NOTIFICATION_GOOGLE_URL_UPDATED.
typedef std::pair<GURL, GURL> UpdatedDetails;
@@ -111,8 +112,9 @@ class GoogleURLTracker : public net::URLFetcherDelegate,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // NetworkChangeNotifier::IPAddressObserver:
- virtual void OnIPAddressChanged() OVERRIDE;
+ // NetworkChangeNotifier::NetworkChangedObserver:
+ virtual void OnNetworkChanged(
+ net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
// ProfileKeyedService:
virtual void Shutdown() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698