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

Issue 2866793002: [Payment Request] Refactors PaymentRequestCoordinator. (Closed)

Created:
3 years, 7 months ago by macourteau
Modified:
3 years, 7 months ago
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payment Request] Refactors PaymentRequestCoordinator. Refactoring asked for in CL https://codereview.chromium.org/2844783002/. Moves some logic up into PaymentRequestManager, and other logic into PaymentRequestMediator. There's more to refactor, but this is a start. BUG=602666 Review-Url: https://codereview.chromium.org/2866793002 Cr-Commit-Position: refs/heads/master@{#470403} Committed: https://chromium.googlesource.com/chromium/src/+/3cf9dc16046236cc9772df62de7272a3412ded0a

Patch Set 1 #

Patch Set 2 : Cleanup comments. #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix failing test. #

Patch Set 5 : Rebase. #

Total comments: 7

Patch Set 6 : Addresses comments from mahmadi@ and marq@. #

Total comments: 2

Patch Set 7 : Reformats selector. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -133 lines) Patch
M ios/chrome/browser/ui/payments/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_coordinator.h View 1 2 3 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_coordinator.mm View 1 2 3 4 5 7 chunks +22 lines, -100 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm View 1 2 3 4 5 6 3 chunks +17 lines, -19 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_manager.mm View 1 2 3 4 5 2 chunks +90 lines, -1 line 0 comments Download
A ios/chrome/browser/ui/payments/payment_request_mediator.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/payments/payment_request_mediator.mm View 1 chunk +34 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_view_controller.h View 1 2 chunks +12 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_view_controller.mm View 1 2 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (17 generated)
macourteau
3 years, 7 months ago (2017-05-05 20:14:00 UTC) #5
Moe
lgtm. Thank you for the refactoring. https://codereview.chromium.org/2866793002/diff/80001/ios/chrome/browser/ui/payments/payment_request_view_controller.h File ios/chrome/browser/ui/payments/payment_request_view_controller.h (right): https://codereview.chromium.org/2866793002/diff/80001/ios/chrome/browser/ui/payments/payment_request_view_controller.h#newcode25 ios/chrome/browser/ui/payments/payment_request_view_controller.h:25: - (NSString*)authenticatedAccountName; Optional: ...
3 years, 7 months ago (2017-05-08 21:24:13 UTC) #11
marq (ping after 24h)
This is a great start, thanks for digging into this! As you continue refactoring, I ...
3 years, 7 months ago (2017-05-09 09:00:33 UTC) #14
macourteau
https://codereview.chromium.org/2866793002/diff/80001/ios/chrome/browser/ui/payments/payment_request_coordinator.h File ios/chrome/browser/ui/payments/payment_request_coordinator.h (right): https://codereview.chromium.org/2866793002/diff/80001/ios/chrome/browser/ui/payments/payment_request_coordinator.h#newcode57 ios/chrome/browser/ui/payments/payment_request_coordinator.h:57: cvc:(const base::string16&)cvc; On 2017/05/09 09:00:33, marq (ping after 24h) ...
3 years, 7 months ago (2017-05-09 15:21:53 UTC) #15
marq (ping after 24h)
lgtm https://codereview.chromium.org/2866793002/diff/100001/ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm File ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm (right): https://codereview.chromium.org/2866793002/diff/100001/ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm#newcode154 ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm:154: SEL selector = @selector(paymentRequestCoordinator:didCompletePaymentRequest Nit -- this formatting ...
3 years, 7 months ago (2017-05-09 15:40:12 UTC) #18
macourteau
https://codereview.chromium.org/2866793002/diff/100001/ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm File ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm (right): https://codereview.chromium.org/2866793002/diff/100001/ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm#newcode154 ios/chrome/browser/ui/payments/payment_request_coordinator_unittest.mm:154: SEL selector = @selector(paymentRequestCoordinator:didCompletePaymentRequest On 2017/05/09 15:40:12, marq (ping ...
3 years, 7 months ago (2017-05-09 15:48:36 UTC) #19
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/2866793002/120001
3 years, 7 months ago (2017-05-09 15:49:19 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 19:16:05 UTC) #25
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/3cf9dc16046236cc9772df62de72...

Powered by Google App Engine
This is Rietveld 408576698