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

Issue 2131963002: Early return if we find selected shipping option from last. (Closed)

Created:
4 years, 5 months ago by pals
Modified:
4 years, 5 months ago
CC:
chromium-reviews, blink-reviews, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Early return if we find selected shipping option from last. The spec requires using the last selected shipping option. Instead of going through the whole list of shipping options from front to back, iterate from back to front and early return on the first selected shipping option. BUG=587995 TEST=None (No behavior change) Committed: https://crrev.com/8142cc7a7fe456a03d36343a4420d117b7207c1c Cr-Commit-Position: refs/heads/master@{#404449}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review comments fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
pals
PTAL.
4 years, 5 months ago (2016-07-08 13:26:06 UTC) #3
please use gerrit instead
Please explain in the patch description why early return is correct. For example, "The spec ...
4 years, 5 months ago (2016-07-08 13:53:47 UTC) #6
pals
Done. PTAL https://codereview.chromium.org/2131963002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2131963002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode342 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:342: result = details.shippingOptions()[i].id(); On 2016/07/08 13:53:47, Rouslan ...
4 years, 5 months ago (2016-07-08 13:58:57 UTC) #9
please use gerrit instead
lgtm
4 years, 5 months ago (2016-07-08 13:59:36 UTC) #10
please use gerrit instead
lgtm lgtm
4 years, 5 months ago (2016-07-08 13:59:36 UTC) #11
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/2131963002/20001
4 years, 5 months ago (2016-07-08 16:37:02 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-08 18:37:16 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 18:38:55 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8142cc7a7fe456a03d36343a4420d117b7207c1c
Cr-Commit-Position: refs/heads/master@{#404449}

Powered by Google App Engine
This is Rietveld 408576698