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

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

Issue 4980005: Allow sync with 2-factor StrongAuth accounts in ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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.h
diff --git a/chrome/browser/chromeos/login/google_authenticator.h b/chrome/browser/chromeos/login/google_authenticator.h
index d0651fa3fc00a373b46a59058ab7a74e7e211f64..06218b4db37799ddc144026461d241794d091ef6 100644
--- a/chrome/browser/chromeos/login/google_authenticator.h
+++ b/chrome/browser/chromeos/login/google_authenticator.h
@@ -100,6 +100,8 @@ class GoogleAuthenticator : public Authenticator, public GaiaAuthConsumer {
const std::string& login_token,
const std::string& login_captcha);
+ const GoogleServiceAuthError& last_error() { return last_error_; }
+
// Callbacks from GaiaAuthFetcher
virtual void OnClientLoginFailure(
const GoogleServiceAuthError& error);
@@ -197,6 +199,8 @@ class GoogleAuthenticator : public Authenticator, public GaiaAuthConsumer {
bool checked_for_localaccount_; // needed because empty localaccount_ is ok.
Lock localaccount_lock_; // a lock around checked_for_localaccount_.
+ GoogleServiceAuthError last_error_;
+
friend class GoogleAuthenticatorTest;
FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, SaltToAscii);
FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, CheckTwoFactorResponse);

Powered by Google App Engine
This is Rietveld 408576698