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

Unified Diff: chrome/browser/autofill/wallet/required_action.cc

Issue 12045057: [autofill] Adding the PASSIVE_GAIA_AUTH required action gotten when interacting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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: chrome/browser/autofill/wallet/required_action.cc
diff --git a/chrome/browser/autofill/wallet/required_action.cc b/chrome/browser/autofill/wallet/required_action.cc
index c87b537e848a6593c413b4d60ee5264abcb3c92e..ac79b0795eb00deb2b64d6bcac6e560ff72abad7 100644
--- a/chrome/browser/autofill/wallet/required_action.cc
+++ b/chrome/browser/autofill/wallet/required_action.cc
@@ -20,7 +20,8 @@ bool ActionAppliesToWalletItems(RequiredAction action) {
return action == SETUP_WALLET ||
action == ACCEPT_TOS ||
action == GAIA_AUTH ||
- action == INVALID_FORM_FIELD;
+ action == INVALID_FORM_FIELD ||
+ action == PASSIVE_GAIA_AUTH;
}
RequiredAction ParseRequiredActionFromString(const std::string& str) {
@@ -41,6 +42,8 @@ RequiredAction ParseRequiredActionFromString(const std::string& str) {
return INVALID_FORM_FIELD;
else if (str_lower == "cvc_risk_challenge")
return CVC_RISK_CHALLENGE;
+ else if (str_lower == "passive_gaia_auth")
+ return PASSIVE_GAIA_AUTH;
DLOG(ERROR) << "Failed to parse: \"" << str << "\" as a required action";
return UNKNOWN_TYPE;
« no previous file with comments | « chrome/browser/autofill/wallet/required_action.h ('k') | chrome/browser/autofill/wallet/wallet_items_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698