| Index: chrome/browser/chromeos/login/login_utils.cc
|
| diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
|
| index 705e77373018501e4c15fad03614450d92fda214..6b12238d73decc15c752b18e20402ee3b4baeac0 100644
|
| --- a/chrome/browser/chromeos/login/login_utils.cc
|
| +++ b/chrome/browser/chromeos/login/login_utils.cc
|
| @@ -181,7 +181,7 @@ class LoginUtilsImpl
|
| : public LoginUtils,
|
| public OAuth1TokenFetcher::Delegate,
|
| public OAuthLoginVerifier::Delegate,
|
| - public net::NetworkChangeNotifier::ConnectionTypeObserver,
|
| + public net::NetworkChangeNotifier::NetworkChangeObserver,
|
| public content::NotificationObserver,
|
| public base::SupportsWeakPtr<LoginUtilsImpl> {
|
| public:
|
| @@ -193,7 +193,7 @@ class LoginUtilsImpl
|
| job_restart_request_(NULL),
|
| should_restore_auth_session_(false),
|
| url_request_context_getter_(NULL) {
|
| - net::NetworkChangeNotifier::AddConnectionTypeObserver(this);
|
| + net::NetworkChangeNotifier::AddNetworkChangeObserver(this);
|
| // During tests, the browser_process may not be initialized yet causing
|
| // this to fail.
|
| if (g_browser_process) {
|
| @@ -205,7 +205,7 @@ class LoginUtilsImpl
|
| }
|
|
|
| virtual ~LoginUtilsImpl() {
|
| - net::NetworkChangeNotifier::RemoveConnectionTypeObserver(this);
|
| + net::NetworkChangeNotifier::RemoveNetworkChangeObserver(this);
|
| }
|
|
|
| // LoginUtils implementation:
|
| @@ -246,8 +246,8 @@ class LoginUtilsImpl
|
| const std::string& auth) OVERRIDE;
|
| virtual void OnOAuthVerificationFailed(const std::string& user_name) OVERRIDE;
|
|
|
| - // net::NetworkChangeNotifier::ConnectionTypeObserver overrides.
|
| - virtual void OnConnectionTypeChanged(
|
| + // net::NetworkChangeNotifier::NetworkChangeObserver overrides.
|
| + virtual void OnNetworkChanged(
|
| net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
|
|
|
| // content::NotificationObserver overrides.
|
| @@ -1202,7 +1202,7 @@ void LoginUtilsImpl::OnOAuthVerificationSucceeded(
|
| }
|
|
|
|
|
| -void LoginUtilsImpl::OnConnectionTypeChanged(
|
| +void LoginUtilsImpl::OnNetworkChanged(
|
| net::NetworkChangeNotifier::ConnectionType type) {
|
| if (type != net::NetworkChangeNotifier::CONNECTION_NONE &&
|
| UserManager::Get()->IsUserLoggedIn()) {
|
|
|