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

Unified Diff: components/autofill/core/browser/card_unmask_delegate.cc

Issue 1148123003: Specify the use of RiskAdvisoryData for Wallet unmask requests on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix initialization Created 5 years, 7 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/core/browser/card_unmask_delegate.cc
diff --git a/components/autofill/core/browser/card_unmask_delegate.cc b/components/autofill/core/browser/card_unmask_delegate.cc
index 00a8c59b175a153a756cb9bbea1d432a68f0eb7f..709acc12e5db739cdfc020ce7e22f099db8784c8 100644
--- a/components/autofill/core/browser/card_unmask_delegate.cc
+++ b/components/autofill/core/browser/card_unmask_delegate.cc
@@ -7,7 +7,16 @@
namespace autofill {
CardUnmaskDelegate::UnmaskResponse::UnmaskResponse()
- : should_store_pan(false) {}
+ : should_store_pan(false),
+ providing_risk_advisory_data(false) {
+#if defined(OS_IOS)
+ // On iOS, we generate a RiskAdvisoryData instead of the
+ // BrowserNativeFingerprinting produced on other platforms. This field
+ // directs the Wallet client to configure the request accordingly.
+ providing_risk_advisory_data = true;
+#endif
+}
+
CardUnmaskDelegate::UnmaskResponse::~UnmaskResponse() {}
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698