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

Unified Diff: ios/chrome/browser/ui/payments/contact_info_edit_coordinator_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/contact_info_edit_coordinator_unittest.mm
diff --git a/ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm b/ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm
index 6ccef7a3409847d73abf75c216880bf617ac3b24..3776c1211b7367ffd0f08bab95f7789a3ede1214 100644
--- a/ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm
+++ b/ios/chrome/browser/ui/payments/contact_info_edit_coordinator_unittest.mm
@@ -16,7 +16,6 @@
#include "components/autofill/core/browser/test_region_data_loader.h"
#include "components/payments/core/payments_profile_comparator.h"
#include "components/prefs/pref_service.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"
#include "ios/chrome/browser/payments/test_payment_request.h"
@@ -109,8 +108,7 @@ class PaymentRequestContactInfoEditCoordinatorTest : public PlatformTest {
chrome_browser_state_.get(), &web_state_, &personal_data_manager_);
profile_comparator_ = base::MakeUnique<MockPaymentsProfileComparator>(
- GetApplicationContext()->GetApplicationLocale(),
- *payment_request_.get());
+ payment_request_->GetApplicationLocale(), *payment_request_.get());
payment_request_->SetProfileComparator(profile_comparator_.get());
test_region_data_loader_.set_synchronous_callback(true);

Powered by Google App Engine
This is Rietveld 408576698