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

Issue 2045833002: Add 'selected' boolean to 'ShippingOption' (Closed)

Created:
4 years, 6 months ago by please use gerrit instead
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), dglazkov+blink, haraken, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 'selected' boolean to 'ShippingOption' ShippingOption.selected is a new boolean member variable used in PaymentRequest. "This is set to true to indicate that this is the default selected ShippingOption in a sequence. User agents should display this option by default in the user interface." The website now has a more powerful way to specify the selected shipping option. Prior to this patch, specifying a single shipping option would result in that option being selected as the default. After this patch, only the option that has "selected: true" is selected by default. This makes calculation of totals more deterministic, as the web developer now knows which shipping option is selected in UI. https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#idl-def-shippingoption https://github.com/w3c/browser-payment-api/commit/684603787c80d46d06b76f73b00a28a938e4b291 BUG=616948 Committed: https://crrev.com/d784539e0ff790124c695b9e704752fa8e0ce525 Cr-Commit-Position: refs/heads/master@{#398471}

Patch Set 1 #

Total comments: 2

Messages

Total messages: 13 (4 generated)
please use gerrit instead
mek@, ptal WebKit. dfalcantara@, ptal Java. tsepez@, ptal payment_request.mojom.
4 years, 6 months ago (2016-06-07 00:25:13 UTC) #3
Marijn Kruisselbrink
https://codereview.chromium.org/2045833002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (left): https://codereview.chromium.org/2045833002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#oldcode292 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:292: // Set the currently selected option if only one ...
4 years, 6 months ago (2016-06-07 00:31:37 UTC) #4
please use gerrit instead
https://codereview.chromium.org/2045833002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (left): https://codereview.chromium.org/2045833002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#oldcode292 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:292: // Set the currently selected option if only one ...
4 years, 6 months ago (2016-06-07 00:52:22 UTC) #5
Tom Sepez
Mojom LGTM
4 years, 6 months ago (2016-06-07 15:52:27 UTC) #6
gone
android/ lgtm
4 years, 6 months ago (2016-06-07 18:17:19 UTC) #7
Marijn Kruisselbrink
lgtm
4 years, 6 months ago (2016-06-07 18:22:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045833002/20001
4 years, 6 months ago (2016-06-07 21:23:25 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 6 months ago (2016-06-08 03:26:24 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 03:27:51 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d784539e0ff790124c695b9e704752fa8e0ce525
Cr-Commit-Position: refs/heads/master@{#398471}

Powered by Google App Engine
This is Rietveld 408576698