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

Issue 2789093002: [Payments] Desktop: implement shipping address/option change (Closed)

Created:
3 years, 8 months ago by Mathieu
Modified:
3 years, 8 months ago
Reviewers:
anthonyvd
CC:
chromium-reviews, darin-cc_chromium.org, gogerald+paymentswatch_chromium.org, jam, mahmadi+paymentswatch_chromium.org, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payments] Desktop: implement shipping address/option change Now when an address/shipping option is selected, the information goes to the merchant and when updateWith eventually gets called, the information is updated in the UI. Moved the selection of the shipping option to the spec, as we merely forward the selection event to the merchant and recompute from the PaymentDetails when updateWith is called. Modified DialogEventObserver so that it can observe a sequence of events. BUG=707240 TEST=components_unittests, browser_tests Review-Url: https://codereview.chromium.org/2789093002 Cr-Commit-Position: refs/heads/master@{#461537} Committed: https://chromium.googlesource.com/chromium/src/+/151bd31ea040cb745cdc07e59d4b097186ec3ab3

Patch Set 1 #

Patch Set 2 : fix test #

Patch Set 3 : fixed test #

Total comments: 2

Patch Set 4 : bug number in TODO #

Patch Set 5 : make string copy #

Patch Set 6 : compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+512 lines, -130 lines) Patch
M chrome/browser/ui/views/payments/order_summary_view_controller.h View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/order_summary_view_controller.cc View 3 chunks +10 lines, -5 lines 0 comments Download
A chrome/browser/ui/views/payments/order_summary_view_controller_browsertest.cc View 1 chunk +124 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.h View 6 chunks +27 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_browsertest_base.cc View 5 chunks +81 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view.h View 4 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h View 1 chunk +11 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.cc View 4 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.h View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 4 chunks +22 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.cc View 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/shipping_option_view_controller.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/content/payment_request.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/payments/content/payment_request.cc View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
M components/payments/content/payment_request_spec.h View 5 chunks +29 lines, -0 lines 0 comments Download
M components/payments/content/payment_request_spec.cc View 2 chunks +36 lines, -1 line 0 comments Download
M components/payments/content/payment_request_spec_unittest.cc View 3 chunks +50 lines, -2 lines 0 comments Download
M components/payments/content/payment_request_state.h View 1 2 3 4 5 5 chunks +8 lines, -12 lines 0 comments Download
M components/payments/content/payment_request_state.cc View 6 chunks +14 lines, -26 lines 0 comments Download
M components/payments/content/payment_request_state_unittest.cc View 1 2 3 4 5 3 chunks +9 lines, -22 lines 0 comments Download

Messages

Total messages: 30 (22 generated)
Mathieu
Anthony, PTAL
3 years, 8 months ago (2017-04-03 11:54:06 UTC) #7
anthonyvd
lgtm https://codereview.chromium.org/2789093002/diff/40001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2789093002/diff/40001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode251 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:251: // TODO(crbug.com/xxxxxx): Put a better placeholder row, instead ...
3 years, 8 months ago (2017-04-03 15:09:58 UTC) #14
Mathieu
Thanks! https://codereview.chromium.org/2789093002/diff/40001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc File chrome/browser/ui/views/payments/payment_sheet_view_controller.cc (right): https://codereview.chromium.org/2789093002/diff/40001/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc#newcode251 chrome/browser/ui/views/payments/payment_sheet_view_controller.cc:251: // TODO(crbug.com/xxxxxx): Put a better placeholder row, instead ...
3 years, 8 months ago (2017-04-03 16:27:27 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/2789093002/60001
3 years, 8 months ago (2017-04-03 16:28:20 UTC) #18
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/2789093002/80001
3 years, 8 months ago (2017-04-03 17:44:05 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/44875)
3 years, 8 months ago (2017-04-03 17:55:55 UTC) #24
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/2789093002/100001
3 years, 8 months ago (2017-04-03 18:52:22 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 21:08:24 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/151bd31ea040cb745cdc07e59d4b...

Powered by Google App Engine
This is Rietveld 408576698