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

Issue 2876603005: [Payment Request] Refactors the edit view controller (Closed)

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

Description

[Payment Request] Refactors the edit view controller The edit view controller now handles interleaved selector-backed fields and text fields. Now the billing address field doesn't have to be treated specially by the subclass credit card view controller. This allows for more code to be moved to the superclass. BUG=602666 Review-Url: https://codereview.chromium.org/2876603005 Cr-Commit-Position: refs/heads/master@{#472069} Committed: https://chromium.googlesource.com/chromium/src/+/68175653b309c2d4df784d3a9530bf03f28411b2

Patch Set 1 #

Total comments: 19

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -386 lines) Patch
M ios/chrome/browser/ui/payments/credit_card_edit_coordinator.mm View 4 chunks +26 lines, -23 lines 0 comments Download
M ios/chrome/browser/ui/payments/credit_card_edit_coordinator_unittest.mm View 1 4 chunks +10 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm View 1 4 chunks +62 lines, -33 lines 0 comments Download
M ios/chrome/browser/ui/payments/credit_card_edit_view_controller.h View 2 chunks +2 lines, -5 lines 0 comments Download
M ios/chrome/browser/ui/payments/credit_card_edit_view_controller.mm View 11 chunks +12 lines, -127 lines 0 comments Download
M ios/chrome/browser/ui/payments/credit_card_edit_view_controller_data_source.h View 1 chunk +0 lines, -24 lines 0 comments Download
M ios/chrome/browser/ui/payments/credit_card_edit_view_controller_unittest.mm View 1 6 chunks +30 lines, -32 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_edit_view_controller.h View 2 chunks +18 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_edit_view_controller.mm View 1 16 chunks +145 lines, -88 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_edit_view_controller+internal.h View 2 chunks +0 lines, -9 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_edit_view_controller_data_source.h View 1 1 chunk +18 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_editor_field.h View 2 chunks +15 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_editor_field.mm View 2 chunks +8 lines, -0 lines 0 comments Download
M ios/showcase/payments/sc_payments_editor_coordinator.mm View 1 2 1 chunk +79 lines, -25 lines 0 comments Download
M ios/showcase/payments/sc_payments_editor_egtest.mm View 4 chunks +40 lines, -4 lines 0 comments Download
M ios/showcase/payments/sc_payments_picker_coordinator.mm View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M ios/showcase/payments/sc_payments_selector_coordinator.mm View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
Moe
Hi MAC, Please take a look.
3 years, 7 months ago (2017-05-11 15:38:21 UTC) #2
macourteau
https://codereview.chromium.org/2876603005/diff/1/ios/chrome/browser/ui/payments/credit_card_edit_coordinator_unittest.mm File ios/chrome/browser/ui/payments/credit_card_edit_coordinator_unittest.mm (right): https://codereview.chromium.org/2876603005/diff/1/ios/chrome/browser/ui/payments/credit_card_edit_coordinator_unittest.mm#newcode73 ios/chrome/browser/ui/payments/credit_card_edit_coordinator_unittest.mm:73: nit: blank line? https://codereview.chromium.org/2876603005/diff/1/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm File ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm (right): https://codereview.chromium.org/2876603005/diff/1/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm#newcode87 ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm:87: ...
3 years, 7 months ago (2017-05-11 18:59:40 UTC) #3
macourteau
Also, seems like there's a few different things going on in here. Maybe, in future ...
3 years, 7 months ago (2017-05-11 19:05:53 UTC) #4
Moe
Thank you. I took the new payment request editor unit test into its own CL. ...
3 years, 7 months ago (2017-05-11 19:39:38 UTC) #8
macourteau
lgtm https://codereview.chromium.org/2876603005/diff/1/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm File ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm (right): https://codereview.chromium.org/2876603005/diff/1/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm#newcode87 ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm:87: } else { On 2017/05/11 19:39:38, Moe wrote: ...
3 years, 7 months ago (2017-05-11 19:58:24 UTC) #11
Moe
Hi Ed, could you please take a look at ios/showcase?
3 years, 7 months ago (2017-05-11 20:01:12 UTC) #13
edchin
lgtm on showcase with minor comment. https://codereview.chromium.org/2876603005/diff/40001/ios/showcase/payments/sc_payments_editor_coordinator.mm File ios/showcase/payments/sc_payments_editor_coordinator.mm (right): https://codereview.chromium.org/2876603005/diff/40001/ios/showcase/payments/sc_payments_editor_coordinator.mm#newcode53 ios/showcase/payments/sc_payments_editor_coordinator.mm:53: setDelegate:reinterpret_cast< I think ...
3 years, 7 months ago (2017-05-15 17:38:17 UTC) #14
Moe
Thank you. https://codereview.chromium.org/2876603005/diff/40001/ios/showcase/payments/sc_payments_editor_coordinator.mm File ios/showcase/payments/sc_payments_editor_coordinator.mm (right): https://codereview.chromium.org/2876603005/diff/40001/ios/showcase/payments/sc_payments_editor_coordinator.mm#newcode53 ios/showcase/payments/sc_payments_editor_coordinator.mm:53: setDelegate:reinterpret_cast< On 2017/05/15 17:38:17, edchin wrote: > ...
3 years, 7 months ago (2017-05-15 18:36:42 UTC) #15
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/2876603005/60001
3 years, 7 months ago (2017-05-16 11:27:01 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/215938)
3 years, 7 months ago (2017-05-16 11:48:49 UTC) #20
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/2876603005/60001
3 years, 7 months ago (2017-05-16 12:50:32 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 12:55:20 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/68175653b309c2d4df784d3a9530...

Powered by Google App Engine
This is Rietveld 408576698