Commit c05d3e47 authored by Manas Verma's avatar Manas Verma Committed by Commit Bot

[Autofill Auth] Updating PaymentsClient JSON field name.

Changing "fido_eligible_credit_card_id" to "fido_eligible_card_id" to match
server field names.

Bug: 949269
Change-Id: I932fd907cd18dd5377e1e0b278cec0b936a6c25b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1891769Reviewed-by: default avatarJared Saul <jsaul@google.com>
Commit-Queue: Manas Verma <manasverma@google.com>
Cr-Commit-Position: refs/heads/master@{#711136}
parent 2036b5e3
...@@ -295,7 +295,7 @@ class GetUnmaskDetailsRequest : public PaymentsRequest { ...@@ -295,7 +295,7 @@ class GetUnmaskDetailsRequest : public PaymentsRequest {
unmask_details_.fido_request_options = dictionary_value->Clone(); unmask_details_.fido_request_options = dictionary_value->Clone();
const auto* fido_eligible_card_ids = response.FindKeyOfType( const auto* fido_eligible_card_ids = response.FindKeyOfType(
"fido_eligible_credit_card_id", base::Value::Type::LIST); "fido_eligible_card_id", base::Value::Type::LIST);
if (fido_eligible_card_ids) { if (fido_eligible_card_ids) {
for (const base::Value& result : fido_eligible_card_ids->GetList()) { for (const base::Value& result : fido_eligible_card_ids->GetList()) {
unmask_details_.fido_eligible_card_ids.insert(result.GetString()); unmask_details_.fido_eligible_card_ids.insert(result.GetString());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment