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

Unified Diff: chrome/browser/intranet_redirect_detector.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/intranet_redirect_detector.h
diff --git a/chrome/browser/intranet_redirect_detector.h b/chrome/browser/intranet_redirect_detector.h
index a0a575d73a79ba14d329153b9eaaeb765b965a53..b8ab488722abf09ebbb04f214d4a5d8bee943a0e 100644
--- a/chrome/browser/intranet_redirect_detector.h
+++ b/chrome/browser/intranet_redirect_detector.h
@@ -37,7 +37,7 @@ class PrefServiceSimple;
// redirection is in place, the returned GURL will be empty.
class IntranetRedirectDetector
: public net::URLFetcherDelegate,
- public net::NetworkChangeNotifier::IPAddressObserver {
+ public net::NetworkChangeNotifier::NetworkChangeObserver {
public:
// Only the main browser process loop should call this, when setting up
// g_browser_process->intranet_redirect_detector_. No code other than the
@@ -68,8 +68,9 @@ class IntranetRedirectDetector
// net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
- // NetworkChangeNotifier::IPAddressObserver
- virtual void OnIPAddressChanged() OVERRIDE;
+ // NetworkChangeNotifier::NetworkChangeObserver
+ virtual void OnNetworkChanged(
+ net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
GURL redirect_origin_;
base::WeakPtrFactory<IntranetRedirectDetector> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698