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

Issue 2774233005: Creating PaymentOptionsProvider interface (Closed)

Created:
3 years, 8 months ago by tmartino
Modified:
3 years, 8 months ago
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

Creating PaymentOptionsProvider, a Mojo-less interface for providing PaymentOptions, suitable for use in components/core. This will allow forthcoming profile filtering and deduplication options (and anything else which depends on these values) to be written cross-platform, and reduces the bleeding of Mojo into views logic that doesn't really need to know about it. Usage details: - Desktop: This CL changes PaymentRequestSpec to implement this interface. It removes the options() accessor, which is no longer necessary. - iOS: the iOS version of payment_request.h already has a PaymentOptions class which corresponds to, and can be trivially modified to implement, this interface. - Android: A small utility class implementing this interface is forthcoming. The needed data is present as accessible members of PaymentRequestImpl. See also crrev.com/2775553004 for further context. That CL will be updated to pass PaymentOptionsProvider instead of PaymentRequestSpec. BUG=706117 Review-Url: https://codereview.chromium.org/2774233005 Cr-Commit-Position: refs/heads/master@{#460639} Committed: https://chromium.googlesource.com/chromium/src/+/5f0912b87c3814ad7a4891f428e8a5b84d477e69

Patch Set 1 #

Patch Set 2 : default case for compile #

Total comments: 6

Patch Set 3 : rouslan comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -40 lines) Patch
M chrome/browser/ui/views/payments/payment_request_views_util.h View 1 2 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.cc View 1 2 4 chunks +13 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/payments/profile_list_view_controller.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/payments/shipping_option_view_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/payments/content/payment_request_spec.h View 4 chunks +9 lines, -7 lines 0 comments Download
M components/payments/content/payment_request_spec.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M components/payments/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/payments/core/payment_options_provider.h View 1 2 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (21 generated)
tmartino
+sebsg, who volunteered to do a first pass based on offline conversations.
3 years, 8 months ago (2017-03-29 18:29:49 UTC) #12
sebsg
Sweet! LGTM!
3 years, 8 months ago (2017-03-29 19:35:23 UTC) #13
tmartino
Thanks Seb! +rouslan for OWNERS
3 years, 8 months ago (2017-03-29 19:37:01 UTC) #15
please use gerrit instead
LGTM % comments. Please format the CL description as follows: <At most 64 characters of ...
3 years, 8 months ago (2017-03-29 21:45:16 UTC) #16
tmartino
https://codereview.chromium.org/2774233005/diff/20001/chrome/browser/ui/views/payments/payment_request_views_util.h File chrome/browser/ui/views/payments/payment_request_views_util.h (right): https://codereview.chromium.org/2774233005/diff/20001/chrome/browser/ui/views/payments/payment_request_views_util.h#newcode13 chrome/browser/ui/views/payments/payment_request_views_util.h:13: #include "components/payments/core/payment_options_provider.h" On 2017/03/29 at 21:45:16, ಠ_ಠ wrote: > ...
3 years, 8 months ago (2017-03-30 03:14:23 UTC) #22
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/2774233005/40001
3 years, 8 months ago (2017-03-30 03:15:18 UTC) #25
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 03:21:58 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5f0912b87c3814ad7a4891f428e8...

Powered by Google App Engine
This is Rietveld 408576698