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

Unified Diff: jingle/notifier/communicator/single_login_attempt.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/single_login_attempt.cc
diff --git a/jingle/notifier/communicator/single_login_attempt.cc b/jingle/notifier/communicator/single_login_attempt.cc
index 0c789ee49745457f60ca120a5d437af62baf9903..2bc6fee2a8a072a7d5c104088f3b06423c3d3ef1 100644
--- a/jingle/notifier/communicator/single_login_attempt.cc
+++ b/jingle/notifier/communicator/single_login_attempt.cc
@@ -131,6 +131,11 @@ void SingleLoginAttempt::OnError(buzz::XmppEngine::Error error, int subcode,
}
}
+ if (error == buzz::XmppEngine::ERROR_UNAUTHORIZED) {
+ delegate_->OnRejectedCredentials();
+ return;
+ }
+
if (current_settings_ == settings_list_.end()) {
NOTREACHED();
return;

Powered by Google App Engine
This is Rietveld 408576698