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

Unified Diff: components/payments/core/subkey_requester.h

Issue 2966103002: [Payments] Show admin area complete names on PR form. (Closed)
Patch Set: Unit-tests added. Created 3 years, 5 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/payments/core/subkey_requester.h
diff --git a/components/payments/core/subkey_requester.h b/components/payments/core/subkey_requester.h
index 1813781d5b4339f6378ed877cb7800e83e557a42..a7d597fb3ea2e67b110b03dd8cb0be819ec399e5 100644
--- a/components/payments/core/subkey_requester.h
+++ b/components/payments/core/subkey_requester.h
@@ -10,8 +10,10 @@
namespace payments {
+// This receives a region code and the device's language.
using SubKeyReceiverCallback =
- base::OnceCallback<void(const std::vector<std::string>&)>;
+ base::OnceCallback<void(const std::vector<std::string>&,
+ const std::vector<std::string>&)>;
// SubKeyRequester Loads Rules from the server and extracts the subkeys.
// For a given key (region code for a country, such as US), the list of its
@@ -37,8 +39,9 @@ class SubKeyRequester : public autofill::LoadRulesListener {
// |region_code|. The received subkeys will be returned to the |requester|. If
// the subkeys are not received in |timeout_seconds|, then the requester will
// be informed and the request will be canceled. |requester| should never be
- // null.
+ // null. The requesting device language is set to |language|, ex:"fr".
void StartRegionSubKeysRequest(const std::string& region_code,
+ const std::string& language,
int timeout_seconds,
SubKeyReceiverCallback cb);

Powered by Google App Engine
This is Rietveld 408576698