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

Unified Diff: sync/internal_api/sync_manager_impl.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: sync/internal_api/sync_manager_impl.h
diff --git a/sync/internal_api/sync_manager_impl.h b/sync/internal_api/sync_manager_impl.h
index 89422011f232b5eeb4816114e8d7c9dcf5445b19..11e4ea4778a1b2d9d901f1205384efb857c63192 100644
--- a/sync/internal_api/sync_manager_impl.h
+++ b/sync/internal_api/sync_manager_impl.h
@@ -49,8 +49,7 @@ class SyncSessionContext;
// same thread.
class SYNC_EXPORT_PRIVATE SyncManagerImpl :
public SyncManager,
- public net::NetworkChangeNotifier::IPAddressObserver,
- public net::NetworkChangeNotifier::ConnectionTypeObserver,
+ public net::NetworkChangeNotifier::NetworkChangeObserver,
public InvalidationHandler,
public JsBackend,
public SyncEngineEventListener,
@@ -179,12 +178,10 @@ class SYNC_EXPORT_PRIVATE SyncManagerImpl :
const ObjectIdInvalidationMap& invalidation_map,
IncomingInvalidationSource source) OVERRIDE;
- // These OnYYYChanged() methods are only called by our NetworkChangeNotifier.
- // Called when IP address of primary interface changes.
- virtual void OnIPAddressChanged() OVERRIDE;
- // Called when the connection type of the system has changed.
- virtual void OnConnectionTypeChanged(
- net::NetworkChangeNotifier::ConnectionType) OVERRIDE;
+ // Called by the NetworkChangeNotifier when a significant change to the
+ // network connection has occurred.
+ virtual void OnNetworkChanged(
+ net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
const SyncScheduler* scheduler() const;

Powered by Google App Engine
This is Rietveld 408576698