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

Issue 2145553002: Parameterize OnError method. (Closed)

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

Description

Parameterize OnError method. This change is required to support following part of the spec. "Let acceptedMethods be supportedMethods with all identifiers removed that the user agent does not accept. If the length of acceptedMethods is zero, then reject acceptPromise with a NotSupportedError." BUG=627705 Committed: https://crrev.com/e542d0af7a4908ec043b86d858bb9206a1c9c7f9 Cr-Commit-Position: refs/heads/master@{#406227}

Patch Set 1 #

Patch Set 2 : Parameterize OnError method. #

Total comments: 26

Patch Set 3 : Parameterize OnError method. #

Total comments: 20

Patch Set 4 : Fixed review comments #

Total comments: 4

Patch Set 5 : Fixed comments #

Patch Set 6 : Test1 #

Total comments: 12

Patch Set 7 : fixing integration test failures #

Patch Set 8 : fixing integration test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -29 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/data/android/payments/contact_details.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/android/payments/dynamic_shipping.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/android/payments/email.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/android/payments/free_shipping.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/android/payments/no_shipping.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/android/payments/phone.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 5 6 7 3 chunks +45 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp View 1 2 3 4 4 chunks +31 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentTestHelper.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/payments/payment_request.mojom View 4 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 53 (31 generated)
pals
Facing a issue while testing the change. Could you please suggest if there is simple ...
4 years, 5 months ago (2016-07-12 11:42:56 UTC) #3
pals
[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/streams/ReadableStreamTest.cpp?rcl=1468293534&l=37
4 years, 5 months ago (2016-07-12 11:43:50 UTC) #4
pals
https://codereview.chromium.org/2145553002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp File third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp (right): https://codereview.chromium.org/2145553002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp#newcode165 third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp:165: // EXPECT_CALL(*m_mockFunctions.last(), call(testing::_)); [1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/streams/ReadableStreamTest.cpp?rcl=1468293534&l=37
4 years, 5 months ago (2016-07-12 11:45:01 UTC) #5
pals
Facing a issue while testing the change. Could you please suggest if there is simple ...
4 years, 5 months ago (2016-07-12 13:15:13 UTC) #6
please use gerrit instead
See the solution to the testing issue inline. https://codereview.chromium.org/2145553002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2145553002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode593 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:593: String ...
4 years, 5 months ago (2016-07-12 15:57:36 UTC) #7
pals
Thank you for the help. Please take another look. https://codereview.chromium.org/2145553002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2145553002/diff/20001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode593 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:593: ...
4 years, 5 months ago (2016-07-13 05:54:28 UTC) #11
please use gerrit instead
Great stuff! A few more comments + advice on fixing the integration tests. https://codereview.chromium.org/2145553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File ...
4 years, 5 months ago (2016-07-13 15:55:26 UTC) #18
pals
PTAL. https://codereview.chromium.org/2145553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2145553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode834 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:834: mClient.onError(PaymentErrorReason.UNKNOWN); On 2016/07/13 15:55:25, Rouslan (ツ) wrote: > ...
4 years, 5 months ago (2016-07-14 08:37:39 UTC) #23
please use gerrit instead
lgtm https://codereview.chromium.org/2145553002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://codereview.chromium.org/2145553002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode834 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:834: mClient.onError(PaymentErrorReason.CANCEL); Sorry, didn't mean to make you switch ...
4 years, 5 months ago (2016-07-14 22:44:46 UTC) #24
please use gerrit instead
dfalcantara@, owners ptal PaymentRequestImpl.java (I should really add myself to owners there.) palmer@, ptal payment_request.mojom.
4 years, 5 months ago (2016-07-14 22:46:12 UTC) #26
gone
Java OWNERS lgtm
4 years, 5 months ago (2016-07-14 23:13:09 UTC) #27
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/2145553002/120001
4 years, 5 months ago (2016-07-15 03:44:35 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/218703)
4 years, 5 months ago (2016-07-15 03:51:04 UTC) #31
pals
On 2016/07/15 03:51:04, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 5 months ago (2016-07-15 05:57:50 UTC) #32
palmer
IPC security LGTM but you might want to set more meaningful |ExceptionCode|s, if possible. https://codereview.chromium.org/2145553002/diff/120001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp ...
4 years, 5 months ago (2016-07-16 00:37:33 UTC) #33
please use gerrit instead
https://codereview.chromium.org/2145553002/diff/120001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2145553002/diff/120001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode595 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:595: case mojom::blink::PaymentErrorReason::CANCEL: On 2016/07/16 00:37:33, palmer wrote: > |SyntaxError| ...
4 years, 5 months ago (2016-07-16 01:26:59 UTC) #34
please use gerrit instead
sanjoy.pal@: Please change the code as I've specified and then you're OK to commit.
4 years, 5 months ago (2016-07-16 01:28:00 UTC) #35
pals
Please take a look. https://codereview.chromium.org/2145553002/diff/120001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2145553002/diff/120001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode595 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:595: case mojom::blink::PaymentErrorReason::CANCEL: Compiler gives following ...
4 years, 5 months ago (2016-07-18 04:00:38 UTC) #36
please use gerrit instead
https://codereview.chromium.org/2145553002/diff/180001/chrome/test/data/android/payments/contact_details.js File chrome/test/data/android/payments/contact_details.js (right): https://codereview.chromium.org/2145553002/diff/180001/chrome/test/data/android/payments/contact_details.js#newcode26 chrome/test/data/android/payments/contact_details.js:26: }, function(error) { This change should not be necessary. ...
4 years, 5 months ago (2016-07-18 17:55:59 UTC) #38
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/2145553002/220001
4 years, 5 months ago (2016-07-19 07:26:04 UTC) #49
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years, 5 months ago (2016-07-19 07:30:32 UTC) #51
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 07:31:53 UTC) #53
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e542d0af7a4908ec043b86d858bb9206a1c9c7f9
Cr-Commit-Position: refs/heads/master@{#406227}

Powered by Google App Engine
This is Rietveld 408576698