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

Unified Diff: components/payments/content/payment_request_state.cc

Issue 2803443003: [Payments] Added region load failure tolerance and tests to PR editor. (Closed)
Patch Set: Removed unneeded include. Created 3 years, 8 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/content/payment_request_state.cc
diff --git a/components/payments/content/payment_request_state.cc b/components/payments/content/payment_request_state.cc
index 4471b6040617c4b5750f7cc7394cac632df16db8..04c99386c5d2a8d37fc1c21e4839331310d5ecc5 100644
--- a/components/payments/content/payment_request_state.cc
+++ b/components/payments/content/payment_request_state.cc
@@ -4,7 +4,9 @@
#include "components/payments/content/payment_request_state.h"
+#include <algorithm>
#include <set>
+#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/autofill_data_util.h"
@@ -110,6 +112,16 @@ autofill::PersonalDataManager* PaymentRequestState::GetPersonalDataManager() {
return personal_data_manager_;
}
+std::unique_ptr<const ::i18n::addressinput::Source>
+PaymentRequestState::GetAddressInputSource() {
+ return payment_request_delegate_->GetAddressInputSource();
+}
+
+std::unique_ptr<::i18n::addressinput::Storage>
+PaymentRequestState::GetAddressInputStorage() {
+ return payment_request_delegate_->GetAddressInputStorage();
+}
+
void PaymentRequestState::PopulateProfileCache() {
std::vector<autofill::AutofillProfile*> profiles =
personal_data_manager_->GetProfilesToSuggest();
« no previous file with comments | « components/payments/content/payment_request_state.h ('k') | components/payments/content/payment_response_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698