| Index: jingle/notifier/communicator/login.cc
|
| diff --git a/jingle/notifier/communicator/login.cc b/jingle/notifier/communicator/login.cc
|
| index 886ea848c2ed125c00107c5797548034a19fe612..3418a75982e6da48f9b978076aa244f1d329cc6a 100644
|
| --- a/jingle/notifier/communicator/login.cc
|
| +++ b/jingle/notifier/communicator/login.cc
|
| @@ -27,6 +27,8 @@ namespace notifier {
|
| // Redirect valid for 5 minutes.
|
| static const int kRedirectTimeoutMinutes = 5;
|
|
|
| +Login::Delegate::~Delegate() {}
|
| +
|
| Login::Login(Delegate* delegate,
|
| const buzz::XmppClientSettings& user_settings,
|
| const scoped_refptr<net::URLRequestContextGetter>&
|
| @@ -72,6 +74,12 @@ void Login::OnRedirect(const ServerInformation& redirect_server) {
|
| StartConnection();
|
| }
|
|
|
| +void Login::OnRejectedCredentials() {
|
| + delegate_->OnRejectedCredentials();
|
| + single_attempt_.reset();
|
| + reconnect_timer_.Stop();
|
| +}
|
| +
|
| void Login::OnIPAddressChanged() {
|
| VLOG(1) << "Detected IP address change";
|
| // Reconnect in 1 to 9 seconds (vary the time a little to try to
|
|
|