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

Issue 2192423002: Show at most one PaymentRequest UI at a time. (Closed)

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

Show at most one PaymentRequest UI at a time. If the webpage calls PaymentRequest.show() while another PaymentRequest UI is already showing, then reject the second show() promise. In addition, this patch performs "OK to create PaymentRequest" checks inside of the PaymentRequestFactory instead of the PaymentRequestImpl constructor. That way PaymentRequestImpl is guaranteed to have a valid state. This allows many variables in PaymentRequestImpl to become final. BUG=633610 Committed: https://crrev.com/8401134848abbb32f99de0f188f730f706e9ae42 Cr-Commit-Position: refs/heads/master@{#409371}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -54 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestFactory.java View 2 chunks +72 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 9 chunks +30 lines, -37 lines 0 comments Download
M chrome/android/java_sources.gni View 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShowTwiceTest.java View 3 chunks +9 lines, -12 lines 0 comments Download
A + chrome/test/data/android/payments/payment_request_show_twice_test.html View 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/test/data/android/payments/show_twice.js View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
please use gerrit instead
dfalcantara, ptal.
4 years, 4 months ago (2016-08-02 16:29:44 UTC) #9
gone
lgtm
4 years, 4 months ago (2016-08-02 21:04:49 UTC) #10
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/2192423002/20001
4 years, 4 months ago (2016-08-02 22:33:01 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 4 months ago (2016-08-02 23:11:00 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 23:12:33 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8401134848abbb32f99de0f188f730f706e9ae42
Cr-Commit-Position: refs/heads/master@{#409371}

Powered by Google App Engine
This is Rietveld 408576698