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

Unified Diff: components/autofill/core/browser/payments/payments_client.h

Issue 2894333002: Pass active_chrome_experiments in payments RPC. (Closed)
Patch Set: Adds feature to active_chrome_experiments only if feature was triggered. Created 3 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/payments/payments_client.h
diff --git a/components/autofill/core/browser/payments/payments_client.h b/components/autofill/core/browser/payments/payments_client.h
index 9e2549dcfd0665335f90415afbe956193577c87b..467b44cc3cb1adfe7f01b5a3e91e8fa5809285e5 100644
--- a/components/autofill/core/browser/payments/payments_client.h
+++ b/components/autofill/core/browser/payments/payments_client.h
@@ -91,6 +91,7 @@ class PaymentsClient : public net::URLFetcherDelegate,
base::string16 context_token;
std::string risk_data;
std::string app_locale;
+ std::vector<const char*> active_experiments;
};
// |context_getter| is reference counted so it has no lifetime or ownership
@@ -115,9 +116,12 @@ class PaymentsClient : public net::URLFetcherDelegate,
// The service uses |addresses| (from which names and phone numbers are
// removed) and |app_locale| to determine which legal message to display. If
// the conditions are met, the legal message will be returned via
- // OnDidGetUploadDetails.
- virtual void GetUploadDetails(const std::vector<AutofillProfile>& addresses,
- const std::string& app_locale);
+ // OnDidGetUploadDetails. |active_experiments| is used by payments server to
+ // track requests that were triggered by enabled features.
+ virtual void GetUploadDetails(
+ const std::vector<AutofillProfile>& addresses,
+ const std::vector<const char*>& active_experiments,
+ const std::string& app_locale);
// The user has indicated that they would like to upload a card with the given
// cvc. This request will fail server-side if a successful call to

Powered by Google App Engine
This is Rietveld 408576698