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

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

Issue 2588913002: EarlGrey tests for Payment Request (base CL) (Closed)
Patch Set: Moved the experimental flag back to the BVC Created 3 years, 11 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/payments/payment_method_selection_view_controller.mm
diff --git a/ios/chrome/browser/payments/payment_method_selection_view_controller.mm b/ios/chrome/browser/payments/payment_method_selection_view_controller.mm
index 500bc0a8685185fe8bbee0bb79c4479d2f6c5fa4..f3a169487c787e0f029a05924a10e5b561193bc2 100644
--- a/ios/chrome/browser/payments/payment_method_selection_view_controller.mm
+++ b/ios/chrome/browser/payments/payment_method_selection_view_controller.mm
@@ -62,6 +62,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
[ChromeIcon templateBarButtonItemWithImage:[ChromeIcon backIcon]
target:nil
action:@selector(onReturn)];
+ returnButton.accessibilityLabel = l10n_util::GetNSString(IDS_ACCNAME_BACK);
[self navigationItem].leftBarButtonItem = returnButton;
}
return self;
@@ -91,6 +92,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
autofill::CreditCard* paymentMethod = _paymentMethods[i];
PaymentMethodItem* paymentMethodItem = [[[PaymentMethodItem alloc]
initWithType:ItemTypePaymentMethod] autorelease];
+ paymentMethodItem.accessibilityTraits |= UIAccessibilityTraitButton;
paymentMethodItem.methodID =
base::SysUTF16ToNSString(paymentMethod->TypeAndLastFourDigits());
paymentMethodItem.methodDetail = base::SysUTF16ToNSString(

Powered by Google App Engine
This is Rietveld 408576698