| 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);
|
|
|
|
|