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

Unified Diff: jingle/notifier/communicator/login.cc

Issue 10545170: [Sync] Propagate XMPP auth errors to SyncNotifierObservers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 8 years, 6 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: 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

Powered by Google App Engine
This is Rietveld 408576698