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

Unified Diff: components/autofill/content/browser/wallet/wallet_signin_helper.h

Issue 16858016: Respect the new Online Wallet sign-in response. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: components/autofill/content/browser/wallet/wallet_signin_helper.h
diff --git a/components/autofill/content/browser/wallet/wallet_signin_helper.h b/components/autofill/content/browser/wallet/wallet_signin_helper.h
index 4733dc92f70dd21a2cad2e112de3f0d915b94dcc..8aa83de89e26db4096f6f2e132e5f2e2c72f3533 100644
--- a/components/autofill/content/browser/wallet/wallet_signin_helper.h
+++ b/components/autofill/content/browser/wallet/wallet_signin_helper.h
@@ -104,10 +104,24 @@ class WalletSigninHelper : public GaiaAuthConsumer,
// Initiates fetching of the currently signed-in user information.
void StartFetchingUserNameFromSession();
+ // Processes the response to the passive sign-in (in url_fetcher_),
+ // and initiates fetching the user name on success or calls the delegate
ahutter 2013/06/13 23:52:10 |url_fetcher_|
aruslan 2013/06/18 21:21:47 Done; I removed both methods.
+ // callback on failure.
+ void ProcessPassiveSignInResponseAndFetchUserName();
+
+ // Processes the response to the automatic sign-in (in url_fetcher_),
ahutter 2013/06/13 23:52:10 ditto
aruslan 2013/06/18 21:21:47 Done; I removed both methods.
+ // and calls the delegate callbacks on success/failure.
+ void ProcessAutomaticSignInResponseAndFinish();
+
// Processes the user information received from the server by url_fetcher_
// and calls the delegate callbacks on success/failure.
void ProcessGetAccountInfoResponseAndFinish();
+ // Attempts to parse a response from the Online Wallet passive sign-in.
+ // Returns true if the response is correct and the sign-in has succeeded.
+ // Otherwise, it returns false and sets |error| accordingly.
+ bool ParsePassiveSignInResponse(GoogleServiceAuthError* error);
+
// Attempts to parse the GetAccountInfo response from the server.
// Returns true on success; the obtained email address is stored into |email|.
bool ParseGetAccountInfoResponse(const net::URLFetcher* fetcher,

Powered by Google App Engine
This is Rietveld 408576698