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

Side by Side Diff: ios/chrome/browser/payments/test_payment_request.mm

Issue 2929673003: [Payment Request] Invalidates cached autofill profile after it is updated. (Closed)
Patch Set: Addressed comment Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/payments/test_payment_request.h" 5 #import "ios/chrome/browser/payments/test_payment_request.h"
6 6
7 #include "components/autofill/core/browser/personal_data_manager.h" 7 #include "components/autofill/core/browser/personal_data_manager.h"
8 #include "components/autofill/core/browser/region_data_loader.h" 8 #include "components/autofill/core/browser/region_data_loader.h"
9 #include "components/payments/core/payments_profile_comparator.h"
9 #include "ios/web/public/payments/payment_request.h" 10 #include "ios/web/public/payments/payment_request.h"
10 11
11 #if !defined(__has_feature) || !__has_feature(objc_arc) 12 #if !defined(__has_feature) || !__has_feature(objc_arc)
12 #error "This file requires ARC support." 13 #error "This file requires ARC support."
13 #endif 14 #endif
14 15
15 void TestPaymentRequest::ClearShippingProfiles() { 16 void TestPaymentRequest::ClearShippingProfiles() {
16 shipping_profiles_.clear(); 17 shipping_profiles_.clear();
17 } 18 }
18 19
19 void TestPaymentRequest::ClearContactProfiles() { 20 void TestPaymentRequest::ClearContactProfiles() {
20 contact_profiles_.clear(); 21 contact_profiles_.clear();
21 } 22 }
22 23
23 void TestPaymentRequest::ClearCreditCards() { 24 void TestPaymentRequest::ClearCreditCards() {
24 credit_cards_.clear(); 25 credit_cards_.clear();
25 } 26 }
26 27
27 autofill::RegionDataLoader* TestPaymentRequest::GetRegionDataLoader() { 28 autofill::RegionDataLoader* TestPaymentRequest::GetRegionDataLoader() {
28 return region_data_loader_; 29 return region_data_loader_;
29 } 30 }
31
32 payments::PaymentsProfileComparator* TestPaymentRequest::profile_comparator() {
33 return profile_comparator_;
34 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/payments/test_payment_request.h ('k') | ios/chrome/browser/ui/payments/address_edit_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698