| 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_) {
|
|
|