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

Unified Diff: chrome/browser/sessions/session_restore.cc

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/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index 70be198f968338bdd62127022e48fc13ef3e0c73..daa5fe8f19f939014aca47a253e21ef1541a386f 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -95,7 +95,7 @@ static const int kInitialDelayTimerMS = 100;
// This is not part of SessionRestoreImpl so that synchronous destruction
// of SessionRestoreImpl doesn't have timing problems.
class TabLoader : public content::NotificationObserver,
- public net::NetworkChangeNotifier::ConnectionTypeObserver,
+ public net::NetworkChangeNotifier::NetworkChangeObserver,
public base::RefCounted<TabLoader> {
public:
// Retrieves a pointer to the TabLoader instance shared between profiles, or
@@ -135,8 +135,8 @@ class TabLoader : public content::NotificationObserver,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // net::NetworkChangeNotifier::ConnectionTypeObserver overrides.
- virtual void OnConnectionTypeChanged(
+ // net::NetworkChangeNotifier::NetworkChangeObserver overrides.
+ virtual void OnNetworkChanged(
net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
// Removes the listeners from the specified tab and removes the tab from
@@ -244,7 +244,7 @@ void TabLoader::StartLoading() {
loading_ = true;
LoadNextTab();
} else {
- net::NetworkChangeNotifier::AddConnectionTypeObserver(this);
+ net::NetworkChangeNotifier::AddNetworkChangeObserver(this);
}
#else
loading_ = true;
@@ -264,7 +264,7 @@ TabLoader::TabLoader(base::TimeTicks restore_started)
TabLoader::~TabLoader() {
DCHECK((got_first_paint_ || render_widget_hosts_to_paint_.empty()) &&
tabs_loading_.empty() && tabs_to_load_.empty());
- net::NetworkChangeNotifier::RemoveConnectionTypeObserver(this);
+ net::NetworkChangeNotifier::RemoveNetworkChangeObserver(this);
shared_tab_loader = NULL;
}
@@ -388,7 +388,7 @@ void TabLoader::Observe(int type,
this_retainer_ = NULL;
}
-void TabLoader::OnConnectionTypeChanged(
+void TabLoader::OnNetworkChanged(
net::NetworkChangeNotifier::ConnectionType type) {
if (type != net::NetworkChangeNotifier::CONNECTION_NONE) {
if (!loading_) {

Powered by Google App Engine
This is Rietveld 408576698