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

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

Issue 6526059: Plumb through NetworkChangeNotifier::IsOffline() to WebKit, enabling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No tests yet Created 9 years, 10 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.cc
diff --git a/chrome/browser/google/google_url_tracker.cc b/chrome/browser/google/google_url_tracker.cc
index 5c0e05dafca6e018ec4ab3baa6478e7a96bdcde1..5500c66731265863f09f20d8447cd18090f7037e 100644
--- a/chrome/browser/google/google_url_tracker.cc
+++ b/chrome/browser/google/google_url_tracker.cc
@@ -105,7 +105,7 @@ GoogleURLTracker::GoogleURLTracker()
registrar_.Add(this, NotificationType::DEFAULT_REQUEST_CONTEXT_AVAILABLE,
NotificationService::AllSources());
- net::NetworkChangeNotifier::AddObserver(this);
+ net::NetworkChangeNotifier::AddIPAddressObserver(this);
MessageLoop::current()->PostTask(FROM_HERE,
runnable_method_factory_.NewRunnableMethod(
@@ -114,7 +114,7 @@ GoogleURLTracker::GoogleURLTracker()
GoogleURLTracker::~GoogleURLTracker() {
runnable_method_factory_.RevokeAll();
- net::NetworkChangeNotifier::RemoveObserver(this);
+ net::NetworkChangeNotifier::RemoveIPAddressObserver(this);
}
// static

Powered by Google App Engine
This is Rietveld 408576698