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

Issue 2250793003: Separate PaymentRequest initialization and display. (Closed)

Created:
4 years, 4 months ago by please use gerrit instead
Modified:
4 years, 4 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

Separate PaymentRequest initialization and display. In order to better accommodate delays in querying payment apps, separate initialization of PaymentRequest from displaying it. Thus a merchant website can create a JavaScript PaymentRequest object on page load, but call PaymentRequest.show() only when user clicks the [BUY] button on the page. With this patch, Chrome begins to query the installed payment apps before the user clicks the [BUY] button. This enables faster startup of the PaymentRequest UI. BUG=638454 Committed: https://crrev.com/2525f9688bbb6fd26ff12d38a7c4ee5f31404122 Cr-Commit-Position: refs/heads/master@{#413893}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Set client in init(). Guard against multiple calls to show(). #

Patch Set 3 : Update payment-request-mock.js #

Messages

Total messages: 59 (47 generated)
please use gerrit instead
dfalcantara, ptal Java. mek, ptal Blink. palmer, ptal Mojom.
4 years, 4 months ago (2016-08-20 16:48:37 UTC) #33
please use gerrit instead
tsepez, ptal Mojom.
4 years, 4 months ago (2016-08-20 16:50:24 UTC) #35
Marijn Kruisselbrink
lgtm, but one question around the mojom interface https://codereview.chromium.org/2250793003/diff/110001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom File third_party/WebKit/public/platform/modules/payments/payment_request.mojom (right): https://codereview.chromium.org/2250793003/diff/110001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom#newcode134 third_party/WebKit/public/platform/modules/payments/payment_request.mojom:134: Init(array<PaymentMethodData> ...
4 years, 4 months ago (2016-08-22 16:46:15 UTC) #36
please use gerrit instead
https://codereview.chromium.org/2250793003/diff/110001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom File third_party/WebKit/public/platform/modules/payments/payment_request.mojom (right): https://codereview.chromium.org/2250793003/diff/110001/third_party/WebKit/public/platform/modules/payments/payment_request.mojom#newcode134 third_party/WebKit/public/platform/modules/payments/payment_request.mojom:134: Init(array<PaymentMethodData> methodData, On 2016/08/22 16:46:15, Marijn Kruisselbrink wrote: > ...
4 years, 4 months ago (2016-08-22 16:49:32 UTC) #37
gone
Java bits lgtm https://chromiumcodereview.appspot.com/2250793003/diff/110001/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://chromiumcodereview.appspot.com/2250793003/diff/110001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode351 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:351: public void show() { Should we ...
4 years, 4 months ago (2016-08-22 17:25:24 UTC) #38
please use gerrit instead
https://codereview.chromium.org/2250793003/diff/110001/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/2250793003/diff/110001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode351 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:351: public void show() { On 2016/08/22 17:25:24, dfalcantara wrote: ...
4 years, 4 months ago (2016-08-22 17:52:36 UTC) #40
Tom Sepez
mojom lgtm
4 years, 4 months ago (2016-08-23 00:05:15 UTC) #48
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/2250793003/150001
4 years, 4 months ago (2016-08-23 00:07:13 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/278629)
4 years, 4 months ago (2016-08-23 03:34:52 UTC) #53
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/2250793003/150001
4 years, 4 months ago (2016-08-23 17:03:02 UTC) #55
commit-bot: I haz the power
Committed patchset #3 (id:150001)
4 years, 4 months ago (2016-08-23 23:22:40 UTC) #57
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 23:26:04 UTC) #59
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2525f9688bbb6fd26ff12d38a7c4ee5f31404122
Cr-Commit-Position: refs/heads/master@{#413893}

Powered by Google App Engine
This is Rietveld 408576698