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

Unified Diff: ios/chrome/browser/payments/test_payment_request.mm

Issue 2970013003: [Payment Request] Displays appropriate footer if first transaction completed (Closed)
Patch Set: Addressed comments + rebase 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
« no previous file with comments | « ios/chrome/browser/payments/test_payment_request.h ('k') | ios/chrome/browser/prefs/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/payments/test_payment_request.mm
diff --git a/ios/chrome/browser/payments/test_payment_request.mm b/ios/chrome/browser/payments/test_payment_request.mm
index be46d8a30b2423434ffa8c5f8ad771db6d06e9f9..171ba59c4e11eec9b7a3b0127bd5ba16d665a476 100644
--- a/ios/chrome/browser/payments/test_payment_request.mm
+++ b/ios/chrome/browser/payments/test_payment_request.mm
@@ -7,6 +7,7 @@
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/region_data_loader.h"
#include "components/payments/core/payments_profile_comparator.h"
+#include "components/prefs/pref_service.h"
#include "ios/web/public/payments/payment_request.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -31,6 +32,12 @@ autofill::RegionDataLoader* TestPaymentRequest::GetRegionDataLoader() {
return PaymentRequest::GetRegionDataLoader();
}
+PrefService* TestPaymentRequest::GetPrefService() {
+ if (pref_service_)
+ return pref_service_;
+ return PaymentRequest::GetPrefService();
+}
+
payments::PaymentsProfileComparator* TestPaymentRequest::profile_comparator() {
if (profile_comparator_)
return profile_comparator_;
« no previous file with comments | « ios/chrome/browser/payments/test_payment_request.h ('k') | ios/chrome/browser/prefs/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698