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

Unified Diff: chrome/browser/chromeos/login/google_authenticator.cc

Issue 4980005: Allow sync with 2-factor StrongAuth accounts in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactored 2-factor error passing Created 10 years, 1 month 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: chrome/browser/chromeos/login/google_authenticator.cc
diff --git a/chrome/browser/chromeos/login/google_authenticator.cc b/chrome/browser/chromeos/login/google_authenticator.cc
index 81a1851288a487ce011c4598afe3e3fc2117c505..230db3209ace9ab634f5c733fab632c3a0237f07 100644
--- a/chrome/browser/chromeos/login/google_authenticator.cc
+++ b/chrome/browser/chromeos/login/google_authenticator.cc
@@ -241,7 +241,9 @@ void GoogleAuthenticator::OnClientLoginFailure(
if (error.state() == GoogleServiceAuthError::TWO_FACTOR) {
LOG(WARNING) << "Two factor authenticated. Sync will not work.";
- OnClientLoginSuccess(GaiaAuthConsumer::ClientLoginResult());
+ GaiaAuthConsumer::ClientLoginResult result;
+ result.two_factor = true;
+ OnClientLoginSuccess(result);
return;
}

Powered by Google App Engine
This is Rietveld 408576698