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

Issue 2956323002: [Payment Request] Simplifies VC's logic to decide if an item is selectable (Closed)

Created:
3 years, 5 months ago by Moe
Modified:
3 years, 5 months ago
Reviewers:
macourteau
CC:
chromium-reviews, gogerald+paymentswatch_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, mahmadi+paymentsioswatch_chromium.org, mahmadi+paymentswatch_chromium.org, marq+watch_chromium.org, noyau+watch_chromium.org, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payment Request] Simplifies VC's logic to decide if an item is selectable * The decision is made in the coordinator instead by return a boolean from -paymentRequestSelectorViewController:didSelectItemAtIndex: indicating whether selection can actually be made. * Also fixes a bug where editing an item from the selector screen, in edit mode, without any previosuly selected items was causing a crash. BUG=602666 Review-Url: https://codereview.chromium.org/2956323002 Cr-Commit-Position: refs/heads/master@{#483277} Committed: https://chromium.googlesource.com/chromium/src/+/bb6441a2d4301c1048836c560a3f83e3b68df2c8

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -70 lines) Patch
M ios/chrome/browser/ui/payments/billing_address_selection_coordinator.mm View 4 chunks +15 lines, -12 lines 0 comments Download
M ios/chrome/browser/ui/payments/billing_address_selection_coordinator_unittest.mm View 1 1 chunk +6 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/payments/contact_info_selection_coordinator.mm View 2 chunks +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/payments/contact_info_selection_coordinator_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_method_selection_coordinator.mm View 3 chunks +14 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_method_selection_coordinator_unittest.mm View 1 1 chunk +4 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_selector_view_controller.h View 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm View 1 2 chunks +14 lines, -15 lines 0 comments Download
M ios/chrome/browser/ui/payments/shipping_address_selection_coordinator.mm View 4 chunks +15 lines, -12 lines 0 comments Download
M ios/chrome/browser/ui/payments/shipping_address_selection_coordinator_unittest.mm View 1 1 chunk +4 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/payments/shipping_option_selection_coordinator.mm View 2 chunks +2 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/payments/shipping_option_selection_coordinator_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
Moe
Hi MAC, Please take a look.
3 years, 5 months ago (2017-06-28 17:19:21 UTC) #4
macourteau
lgtm % nit https://codereview.chromium.org/2956323002/diff/1/ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm File ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm (right): https://codereview.chromium.org/2956323002/diff/1/ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm#newcode269 ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm:269: DCHECK(index < [[self.dataSource selectableItems] count]); nit: ...
3 years, 5 months ago (2017-06-28 19:11:42 UTC) #7
Moe
Thank you. https://codereview.chromium.org/2956323002/diff/1/ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm File ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm (right): https://codereview.chromium.org/2956323002/diff/1/ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm#newcode269 ios/chrome/browser/ui/payments/payment_request_selector_view_controller.mm:269: DCHECK(index < [[self.dataSource selectableItems] count]); On 2017/06/28 ...
3 years, 5 months ago (2017-06-29 01:34:02 UTC) #9
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/2956323002/20001
3 years, 5 months ago (2017-06-29 01:34:28 UTC) #11
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 03:18:06 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/bb6441a2d4301c1048836c560a3f...

Powered by Google App Engine
This is Rietveld 408576698