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

Issue 2710493006: [ObjC ARC] Converts ios/chrome/browser/payments:payments to ARC. (Closed)

Created:
3 years, 10 months ago by stkhapugin
Modified:
3 years, 9 months ago
CC:
chromium-reviews, pkl (ping after 24h if needed), gogerald+paymentswatch_chromium.org, rouslan+payments_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, sebsg+paymentswatch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : fixes compilation by reintroducing formal declaration of designated initializer #

Total comments: 11

Patch Set 4 : comments #

Patch Set 5 : rebase #

Patch Set 6 : rebase? #

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

Messages

Total messages: 27 (15 generated)
stkhapugin
PTAL. I made more manual changes than usual so two reviewers.
3 years, 10 months ago (2017-02-21 16:25:25 UTC) #7
sdefresne
lgtm https://codereview.chromium.org/2710493006/diff/40001/ios/chrome/browser/payments/payment_request_coordinator.mm File ios/chrome/browser/payments/payment_request_coordinator.mm (right): https://codereview.chromium.org/2710493006/diff/40001/ios/chrome/browser/payments/payment_request_coordinator.mm#newcode40 ios/chrome/browser/payments/payment_request_coordinator.mm:40: base_view_controller_(base_view_controller){}; nit: remove trailing ; https://codereview.chromium.org/2710493006/diff/40001/ios/chrome/browser/payments/payment_request_coordinator.mm#newcode143 ios/chrome/browser/payments/payment_request_coordinator.mm:143: - ...
3 years, 10 months ago (2017-02-21 17:22:35 UTC) #8
marq (ping after 24h)
+mahmadi FYI https://codereview.chromium.org/2710493006/diff/40001/ios/chrome/browser/payments/payment_method_selection_coordinator.mm File ios/chrome/browser/payments/payment_method_selection_coordinator.mm (right): https://codereview.chromium.org/2710493006/diff/40001/ios/chrome/browser/payments/payment_method_selection_coordinator.mm#newcode71 ios/chrome/browser/payments/payment_method_selection_coordinator.mm:71: if (!strongSelf) Nit: No need to early ...
3 years, 10 months ago (2017-02-22 11:55:59 UTC) #12
Moe
On 2017/02/22 11:55:59, marq wrote: > +mahmadi FYI > > https://codereview.chromium.org/2710493006/diff/40001/ios/chrome/browser/payments/payment_method_selection_coordinator.mm > File ios/chrome/browser/payments/payment_method_selection_coordinator.mm > ...
3 years, 10 months ago (2017-02-22 13:53:32 UTC) #13
stkhapugin
Thanks, PTAL https://codereview.chromium.org/2710493006/diff/40001/ios/chrome/browser/payments/payment_method_selection_coordinator.mm File ios/chrome/browser/payments/payment_method_selection_coordinator.mm (right): https://codereview.chromium.org/2710493006/diff/40001/ios/chrome/browser/payments/payment_method_selection_coordinator.mm#newcode71 ios/chrome/browser/payments/payment_method_selection_coordinator.mm:71: if (!strongSelf) On 2017/02/22 11:55:58, marq wrote: ...
3 years, 10 months ago (2017-02-22 17:47:06 UTC) #14
sdefresne
lgtm
3 years, 10 months ago (2017-02-22 17:50:55 UTC) #15
marq (ping after 24h)
lgtm
3 years, 10 months ago (2017-02-22 18:32:52 UTC) #16
stkhapugin
Thanks!
3 years, 10 months ago (2017-02-23 09:48:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2710493006/60001
3 years, 10 months ago (2017-02-23 09:48:57 UTC) #19
commit-bot: I haz the power
Failed to apply patch for ios/chrome/browser/payments/payment_request_util.mm: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-23 11:06:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2710493006/100001
3 years, 9 months ago (2017-02-24 17:31:29 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-02-24 19:05:12 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/9c1d6844450a80766c882b007587...

Powered by Google App Engine
This is Rietveld 408576698