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

Unified Diff: ios/chrome/browser/ui/payments/billing_address_selection_mediator_unittest.mm

Issue 2971003002: [Payment Request] Queries application locale from payments::PaymentRequest (Closed)
Patch Set: 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
Index: ios/chrome/browser/ui/payments/billing_address_selection_mediator_unittest.mm
diff --git a/ios/chrome/browser/ui/payments/billing_address_selection_mediator_unittest.mm b/ios/chrome/browser/ui/payments/billing_address_selection_mediator_unittest.mm
index 24e7d90009e4d2ad3addc14059fbf86639e32664..ec3af68eb56f24c56d3752a3e4ecf3bbbed24930 100644
--- a/ios/chrome/browser/ui/payments/billing_address_selection_mediator_unittest.mm
+++ b/ios/chrome/browser/ui/payments/billing_address_selection_mediator_unittest.mm
@@ -11,7 +11,6 @@
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/test_personal_data_manager.h"
#include "components/payments/core/payments_profile_comparator.h"
-#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
#include "ios/chrome/browser/payments/payment_request_test_util.h"
#import "ios/chrome/browser/payments/payment_request_util.h"
@@ -59,8 +58,7 @@ class PaymentRequestBillingAddressSelectionMediatorTest : public PlatformTest {
payment_request_test_util::CreateTestWebPaymentRequest(),
chrome_browser_state_.get(), &web_state_, &personal_data_manager_);
profile_comparator_ = base::MakeUnique<FakePaymentsProfileComparator>(
- GetApplicationContext()->GetApplicationLocale(),
- *payment_request_.get());
+ payment_request_->GetApplicationLocale(), *payment_request_.get());
payment_request_->SetProfileComparator(profile_comparator_.get());
}

Powered by Google App Engine
This is Rietveld 408576698