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

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

Issue 2966103002: [Payments] Show admin area complete names on PR form. (Closed)
Patch Set: Keys to names 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.cc
diff --git a/components/payments/core/subkey_requester.cc b/components/payments/core/subkey_requester.cc
index 513fc54ffc49fb980b37e1d24ad388fd2f504d2a..847595ecac6b51adceb5fd9ac22fcd41d2999ed7 100644
--- a/components/payments/core/subkey_requester.cc
+++ b/components/payments/core/subkey_requester.cc
@@ -52,8 +52,14 @@ class SubKeyRequest : public SubKeyRequester::Request {
return;
has_responded_ = true;
- std::move(on_subkeys_received_)
- .Run(address_validator_->GetRegionSubKeys(region_code_));
+ auto subkeys = address_validator_->GetRegionSubKeys(region_code_);
+ std::vector<std::string> subkeys_codes;
+ std::vector<std::string> subkeys_names;
+ for (auto s : subkeys) {
+ subkeys_codes.push_back(s.first);
+ subkeys_names.push_back(s.second);
+ }
+ std::move(on_subkeys_received_).Run(subkeys_codes, subkeys_names);
}
private:

Powered by Google App Engine
This is Rietveld 408576698