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

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

Issue 2866793002: [Payment Request] Refactors PaymentRequestCoordinator. (Closed)
Patch Set: Reformats selector. Created 3 years, 7 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
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_view_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/payments/payment_request_view_controller.mm
diff --git a/ios/chrome/browser/ui/payments/payment_request_view_controller.mm b/ios/chrome/browser/ui/payments/payment_request_view_controller.mm
index 032aa1813a100f682399e5a8f57bef73ed6026e1..1c825fbc85621f1c8d1f4f1287296e51554407b1 100644
--- a/ios/chrome/browser/ui/payments/payment_request_view_controller.mm
+++ b/ios/chrome/browser/ui/payments/payment_request_view_controller.mm
@@ -127,8 +127,8 @@ typedef NS_ENUM(NSInteger, ItemType) {
@synthesize pageHost = _pageHost;
@synthesize pending = _pending;
@synthesize delegate = _delegate;
-@synthesize showDataSource = _showDataSource;
-@synthesize authenticatedAccountName = _authenticatedAccountName;
+@synthesize showPaymentDataSource = _showPaymentDataSource;
+@synthesize dataSource = _dataSource;
- (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest {
DCHECK(paymentRequest);
@@ -186,7 +186,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
_paymentRequest = paymentRequest;
// By default, data source is shown.
- _showDataSource = TRUE;
+ _showPaymentDataSource = TRUE;
}
return self;
}
@@ -373,14 +373,14 @@ typedef NS_ENUM(NSInteger, ItemType) {
[model addSectionWithIdentifier:SectionIdentifierFooter];
CollectionViewFooterItem* footer =
[[CollectionViewFooterItem alloc] initWithType:ItemTypeFooterText];
- if (!_showDataSource) {
+ if (!_showPaymentDataSource) {
footer.text =
l10n_util::GetNSString(IDS_PAYMENTS_CARD_AND_ADDRESS_SETTINGS);
- } else if ([_authenticatedAccountName length]) {
+ } else if ([[_dataSource authenticatedAccountName] length]) {
const std::string unformattedString = l10n_util::GetStringUTF8(
IDS_PAYMENTS_CARD_AND_ADDRESS_SETTINGS_SIGNED_IN);
const std::string accountName =
- base::SysNSStringToUTF8(_authenticatedAccountName);
+ base::SysNSStringToUTF8([_dataSource authenticatedAccountName]);
const std::string formattedString =
base::StringPrintf(unformattedString.c_str(), accountName.c_str());
footer.text = base::SysUTF8ToNSString(formattedString);
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_view_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698