|
[ObjC ARC] Converts ios/chrome/browser/payments:payments to ARC.
Automatically generated ARCMigrate commit
Notable issues:
- Removed multiple delegate getter/setter/ivar combos with synthesize
- Fixed memory management in several blocks, for example:
__weak ShippingOptionSelectionCoordinator* weakSelf = self;
dispatch_after(
dispatch_time(DISPATCH_TIME_NOW,
static_cast<int64_t>(0.2 * NSEC_PER_SEC)),
dispatch_get_main_queue(), ^{
ShippingOptionSelectionCoordinator* strongSelf = weakSelf;
// Early return if the coordinator has been deallocated.
if (!strongSelf)
return;
[_viewController setIsLoading:YES];
}
last line retains self through dereferenced ivar. Also further in the same block:
[_delegate shippingOptionSelectionCoordinator:self didSelectShippingOption:shippingOption];
direct reference to |self|
* In PaymentRequestViewController the following ivars are now strong:
PriceItem* _paymentSummaryItem;
ShippingAddressItem* _selectedShippingAddressItem;
CollectionViewTextItem* _selectedShippingOptionItem;
PaymentMethodItem* _selectedPaymentMethodItem;
* For multiple view controllers with errorMessage property, it was changed from assign to copy as this seems to reflect de-facto usage.
BUG= 624363
TEST=None
Review-Url: https://codereview.chromium.org/2710493006
Cr-Commit-Position: refs/heads/master@{#452891}
Committed: https://chromium.googlesource.com/chromium/src/+/9c1d6844450a80766c882b007587f37e7b3e429d
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+257 lines, -340 lines) |
Patch |
|
M |
ios/chrome/browser/payments/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/js_payment_request_manager.mm
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_items_display_coordinator.mm
|
View
|
1
|
3 chunks |
+10 lines, -15 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_items_display_view_controller.mm
|
View
|
1
|
10 chunks |
+11 lines, -18 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_method_selection_coordinator.mm
|
View
|
1
2
3
|
4 chunks |
+23 lines, -34 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_method_selection_view_controller.mm
|
View
|
1
|
7 chunks |
+9 lines, -17 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_request.mm
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_request_coordinator.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_request_coordinator.mm
|
View
|
1
2
3
4
|
18 chunks |
+43 lines, -65 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_request_manager.mm
|
View
|
1
|
12 chunks |
+34 lines, -34 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_request_util.mm
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_request_view_controller.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/payment_request_view_controller.mm
|
View
|
1
2
3
4
|
16 chunks |
+31 lines, -47 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/shipping_address_selection_coordinator.mm
|
View
|
1
2
3
4
|
4 chunks |
+28 lines, -38 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/shipping_address_selection_view_controller.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/shipping_address_selection_view_controller.mm
|
View
|
1
2
3
4
|
9 chunks |
+12 lines, -21 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/shipping_option_selection_coordinator.mm
|
View
|
1
2
3
4
|
4 chunks |
+28 lines, -37 lines |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/shipping_option_selection_view_controller.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ios/chrome/browser/payments/shipping_option_selection_view_controller.mm
|
View
|
1
2
3
4
|
7 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
Total messages: 27 (15 generated)
|