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

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

Issue 2701923003: [Payment Request] Error message screen (Closed)
Patch Set: Addressed comments Created 3 years, 10 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_request_view_controller.mm
diff --git a/ios/chrome/browser/payments/payment_request_view_controller.mm b/ios/chrome/browser/payments/payment_request_view_controller.mm
index 3daa2ca472ee0432c34332bcc843dcd73cda01c0..7cee8a1d67ecb9b24bf845815196fb22e4abdff9 100644
--- a/ios/chrome/browser/payments/payment_request_view_controller.mm
+++ b/ios/chrome/browser/payments/payment_request_view_controller.mm
@@ -42,8 +42,8 @@ using payment_request_util::NameLabelFromAutofillProfile;
using payment_request_util::AddressLabelFromAutofillProfile;
using payment_request_util::PhoneNumberLabelFromAutofillProfile;
-NSString* const kPaymentRequestCollectionViewId =
- @"kPaymentRequestCollectionViewId";
+NSString* const kPaymentRequestCollectionViewID =
+ @"kPaymentRequestCollectionViewID";
namespace {
@@ -113,7 +113,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
[self setTitle:l10n_util::GetNSString(IDS_IOS_PAYMENT_REQUEST_TITLE)];
- // Set up left (cancel) button.
+ // Set up leading (cancel) button.
_cancelButton.reset([[UIBarButtonItem alloc]
initWithTitle:l10n_util::GetNSString(
IDS_IOS_PAYMENT_REQUEST_CANCEL_BUTTON)
@@ -128,7 +128,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
setAccessibilityLabel:l10n_util::GetNSString(IDS_ACCNAME_CANCEL)];
[self navigationItem].leftBarButtonItem = _cancelButton;
- // Set up right (pay) button.
+ // Set up trailing (pay) button.
_payButton.reset([[MDCFlatButton alloc] init]);
[_payButton
setTitle:l10n_util::GetNSString(IDS_IOS_PAYMENT_REQUEST_PAY_BUTTON)
@@ -312,7 +312,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
- (void)viewDidLoad {
[super viewDidLoad];
- self.collectionView.accessibilityIdentifier = kPaymentRequestCollectionViewId;
+ self.collectionView.accessibilityIdentifier = kPaymentRequestCollectionViewID;
// Customize collection view settings.
self.styler.cellStyle = MDCCollectionViewCellStyleCard;

Powered by Google App Engine
This is Rietveld 408576698