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

Issue 2446093004: [Web Payments] Initial plumb of Payment Request dialog (Closed)

Created:
4 years, 1 month ago by Kevin Bailey
Modified:
4 years, 1 month ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Web Payments] Initial plumb of Payment Request dialog Very crude plumbing of web payments Payment Request dialog box. Does not handle all messages, and dialog box is nearly empty. BUG=659648 Committed: https://crrev.com/7f6421b1628a15833196ff7cf1fefbe5fcd69558 Cr-Commit-Position: refs/heads/master@{#433235}

Patch Set 1 #

Patch Set 2 : Replaced my flag with existing one #

Total comments: 32

Patch Set 3 : Responses #

Total comments: 1

Patch Set 4 : Remove mystery strings #

Total comments: 26

Patch Set 5 : Better object life-cycle management #

Patch Set 6 : Minor responses #

Patch Set 7 : Rebase, and see if empty library was making Windows unhappy #

Patch Set 8 : Try again to make Windows happy #

Patch Set 9 : Make Android build happy #

Total comments: 15

Patch Set 10 : Handling Cancel #

Patch Set 11 : Minor responses #

Total comments: 24

Patch Set 12 : Responses #

Patch Set 13 : Missed a response #

Patch Set 14 : More responses #

Total comments: 2

Patch Set 15 : Restore intermediate variable #

Patch Set 16 : Rebase #

Patch Set 17 : Fix bad rebase #

Patch Set 18 : Handle new member function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -0 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +19 lines, -0 lines 0 comments Download
A chrome/browser/payments/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/payments/payment_request_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/payments/payment_request_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/payments/ui/payment_request_dialog.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/payments/ui/payment_request_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (27 generated)
please use gerrit instead
krb, you're on the right track. Thank you for your efforts! :-D (anthonyvd fyi) https://codereview.chromium.org/2446093004/diff/20001/chrome/browser/chrome_content_browser_client.cc ...
4 years, 1 month ago (2016-11-04 21:58:16 UTC) #4
Kevin Bailey
https://codereview.chromium.org/2446093004/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2446093004/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode2990 chrome/browser/chrome_content_browser_client.cc:2990: if (AreExperimentalWebPlatformFeaturesEnabled()) { On 2016/11/04 21:58:12, rouslan wrote: > ...
4 years, 1 month ago (2016-11-09 16:25:21 UTC) #5
please use gerrit instead
LGTM % comment https://codereview.chromium.org/2446093004/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2446093004/diff/40001/chrome/app/generated_resources.grd#newcode15528 chrome/app/generated_resources.grd:15528: + </message> Seems like a bad ...
4 years, 1 month ago (2016-11-09 16:31:58 UTC) #6
Kevin Bailey
Lei, Could you take a quick owner look? thx, krb
4 years, 1 month ago (2016-11-09 17:39:23 UTC) #8
Lei Zhang
https://codereview.chromium.org/2446093004/diff/60001/chrome/browser/payments/BUILD.gn File chrome/browser/payments/BUILD.gn (right): https://codereview.chromium.org/2446093004/diff/60001/chrome/browser/payments/BUILD.gn#newcode7 chrome/browser/payments/BUILD.gn:7: "payment_request_impl.cc", Add the .h files too. https://codereview.chromium.org/2446093004/diff/60001/chrome/browser/payments/BUILD.gn#newcode11 chrome/browser/payments/BUILD.gn:11: "//skia", ...
4 years, 1 month ago (2016-11-09 18:08:56 UTC) #9
Kevin Bailey
Rouslan, I was hoping to free the PaymentRequestImpl in this CL. I expected that calling ...
4 years, 1 month ago (2016-11-15 14:36:33 UTC) #10
please use gerrit instead
On 2016/11/15 14:36:33, Kevin Bailey wrote: > I was hoping to free the PaymentRequestImpl in ...
4 years, 1 month ago (2016-11-15 15:30:54 UTC) #11
please use gerrit instead
Connection error handler in Blink: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp?rcl=0&l=677 In Java: https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java?rcl=0&l=924
4 years, 1 month ago (2016-11-15 15:33:17 UTC) #12
Lei Zhang
https://codereview.chromium.org/2446093004/diff/60001/chrome/browser/payments/BUILD.gn File chrome/browser/payments/BUILD.gn (right): https://codereview.chromium.org/2446093004/diff/60001/chrome/browser/payments/BUILD.gn#newcode11 chrome/browser/payments/BUILD.gn:11: "//skia", On 2016/11/15 14:36:32, Kevin Bailey wrote: > On ...
4 years, 1 month ago (2016-11-15 19:20:47 UTC) #13
Kevin Bailey
This patch allows the user to click Cancel, and re-open the dialog any number of ...
4 years, 1 month ago (2016-11-15 19:20:56 UTC) #14
Kevin Bailey
https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc File chrome/browser/payments/payment_request_impl.cc (right): https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc#newcode44 chrome/browser/payments/payment_request_impl.cc:44: base::Lock mu_; On 2016/11/15 19:20:47, Lei Zhang (not reviewing ...
4 years, 1 month ago (2016-11-15 19:26:35 UTC) #15
please use gerrit instead
On 2016/11/15 19:26:35, Kevin Bailey wrote: > https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc > File chrome/browser/payments/payment_request_impl.cc (right): > > https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc#newcode44 ...
4 years, 1 month ago (2016-11-15 19:30:53 UTC) #16
Lei Zhang
https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc File chrome/browser/payments/payment_request_impl.cc (right): https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc#newcode44 chrome/browser/payments/payment_request_impl.cc:44: base::Lock mu_; On 2016/11/15 19:26:35, Kevin Bailey wrote: > ...
4 years, 1 month ago (2016-11-15 19:30:57 UTC) #17
Kevin Bailey
https://codereview.chromium.org/2446093004/diff/60001/chrome/browser/payments/BUILD.gn File chrome/browser/payments/BUILD.gn (right): https://codereview.chromium.org/2446093004/diff/60001/chrome/browser/payments/BUILD.gn#newcode11 chrome/browser/payments/BUILD.gn:11: "//skia", On 2016/11/15 19:20:47, Lei Zhang (not reviewing code) ...
4 years, 1 month ago (2016-11-15 20:33:56 UTC) #18
please use gerrit instead
https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc File chrome/browser/payments/payment_request_impl.cc (right): https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc#newcode25 chrome/browser/payments/payment_request_impl.cc:25: if (set_.find(web_contents) == set_.end()) { I prefer what you ...
4 years, 1 month ago (2016-11-15 20:38:07 UTC) #19
please use gerrit instead
https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc File chrome/browser/payments/payment_request_impl.cc (right): https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/payment_request_impl.cc#newcode44 chrome/browser/payments/payment_request_impl.cc:44: base::Lock mu_; All WebContents objects live in the single ...
4 years, 1 month ago (2016-11-15 20:41:04 UTC) #20
Lei Zhang
https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/ui/payment_request_dialog.h File chrome/browser/payments/ui/payment_request_dialog.h (right): https://codereview.chromium.org/2446093004/diff/160001/chrome/browser/payments/ui/payment_request_dialog.h#newcode20 chrome/browser/payments/ui/payment_request_dialog.h:20: ui::ModalType GetModalType() const override; On 2016/11/15 20:33:55, Kevin Bailey ...
4 years, 1 month ago (2016-11-15 21:25:06 UTC) #21
Lei Zhang
https://codereview.chromium.org/2446093004/diff/200001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2446093004/diff/200001/chrome/browser/chrome_content_browser_client.cc#newcode2992 chrome/browser/chrome_content_browser_client.cc:2992: #if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_WIN) You can do ...
4 years, 1 month ago (2016-11-16 00:59:33 UTC) #22
Kevin Bailey
https://codereview.chromium.org/2446093004/diff/200001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2446093004/diff/200001/chrome/browser/chrome_content_browser_client.cc#newcode2992 chrome/browser/chrome_content_browser_client.cc:2992: #if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_WIN) On 2016/11/16 00:59:33, ...
4 years, 1 month ago (2016-11-16 14:13:48 UTC) #23
Lei Zhang
I would also suggest sprinkling in DCHECK_CURRENTLY_ON(content::BrowserThread::UI) to make sure your code is actually running ...
4 years, 1 month ago (2016-11-16 18:39:30 UTC) #24
Lei Zhang
https://codereview.chromium.org/2446093004/diff/200001/chrome/browser/payments/payment_request_impl.cc File chrome/browser/payments/payment_request_impl.cc (right): https://codereview.chromium.org/2446093004/diff/200001/chrome/browser/payments/payment_request_impl.cc#newcode39 chrome/browser/payments/payment_request_impl.cc:39: std::set<content::WebContents*> set_; On 2016/11/16 18:39:30, Lei Zhang (not reviewing ...
4 years, 1 month ago (2016-11-16 18:43:19 UTC) #25
Kevin Bailey
The single-threaded factory was an obvious place for a DCHECK. The rest were guesses based ...
4 years, 1 month ago (2016-11-16 22:34:09 UTC) #26
Lei Zhang
lgtm https://codereview.chromium.org/2446093004/diff/200001/chrome/browser/payments/payment_request_impl.cc File chrome/browser/payments/payment_request_impl.cc (right): https://codereview.chromium.org/2446093004/diff/200001/chrome/browser/payments/payment_request_impl.cc#newcode39 chrome/browser/payments/payment_request_impl.cc:39: std::set<content::WebContents*> set_; On 2016/11/16 22:34:09, Kevin Bailey wrote: ...
4 years, 1 month ago (2016-11-16 23:02:26 UTC) #27
Kevin Bailey
https://codereview.chromium.org/2446093004/diff/260001/chrome/browser/payments/payment_request_impl.cc File chrome/browser/payments/payment_request_impl.cc (right): https://codereview.chromium.org/2446093004/diff/260001/chrome/browser/payments/payment_request_impl.cc#newcode26 chrome/browser/payments/payment_request_impl.cc:26: map_[web_contents] = scoped_refptr<payments::PaymentRequestImpl>( On 2016/11/16 23:02:26, Lei Zhang (Mostly ...
4 years, 1 month ago (2016-11-17 15:05:42 UTC) #34
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/2446093004/280001
4 years, 1 month ago (2016-11-17 18:05:17 UTC) #39
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chrome_content_browser_client.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-17 18:12:00 UTC) #41
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/2446093004/340001
4 years, 1 month ago (2016-11-18 17:09:02 UTC) #52
commit-bot: I haz the power
Committed patchset #18 (id:340001)
4 years, 1 month ago (2016-11-18 17:46:55 UTC) #54
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 17:53:05 UTC) #56
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/7f6421b1628a15833196ff7cf1fefbe5fcd69558
Cr-Commit-Position: refs/heads/master@{#433235}

Powered by Google App Engine
This is Rietveld 408576698