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

Issue 2556433002: PaymentApp: Implement GetAllManifests() in PaymentAppContext. (Closed)

Created:
4 years ago by zino
Modified:
4 years ago
CC:
chromium-reviews, jam, wjmaclean, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentApp: Implement GetAllManifests() in PaymentAppContext. This CL is implementing GetAllManifests() method in PaymentAppContext. It is used to query all manifests data in Chrome layer to display all registered payment apps in the payment request UI. Wrote a test for this CL in payment_app_context_impl_unittest.cc and moved a lot of existing codes in payment_app_manager_unittest.cc to payment_app_content_unittest_base.cc to share many codes between the new test and the existing test. BUG=661608 TEST=payment_app_context_impl_unittest.cc Committed: https://crrev.com/e7f7d131d832a62ea5e480c7781736acfba90f62 Cr-Commit-Position: refs/heads/master@{#439546}

Patch Set 1 #

Patch Set 2 #

Total comments: 2

Patch Set 3 #

Total comments: 23

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 #

Total comments: 56

Patch Set 7 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -119 lines) Patch
A content/browser/payments/payment_app_content_unittest_base.h View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A content/browser/payments/payment_app_content_unittest_base.cc View 1 2 3 4 5 6 1 chunk +118 lines, -0 lines 0 comments Download
M content/browser/payments/payment_app_context_impl.h View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M content/browser/payments/payment_app_context_impl.cc View 1 2 3 3 chunks +21 lines, -2 lines 0 comments Download
A content/browser/payments/payment_app_context_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +114 lines, -0 lines 0 comments Download
M content/browser/payments/payment_app_database.h View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/payments/payment_app_database.cc View 1 2 3 4 5 6 3 chunks +63 lines, -20 lines 0 comments Download
M content/browser/payments/payment_app_manager.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/payments/payment_app_manager_unittest.cc View 1 2 3 4 5 6 7 chunks +26 lines, -92 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (26 generated)
zino
Hi Tommy, I'm really sorry. I didn't know that the issue is protected.. Maybe, you ...
4 years ago (2016-12-07 12:05:14 UTC) #3
zino
https://codereview.chromium.org/2556433002/diff/20001/content/public/browser/payment_app_context.h File content/public/browser/payment_app_context.h (right): https://codereview.chromium.org/2556433002/diff/20001/content/public/browser/payment_app_context.h#newcode16 content/public/browser/payment_app_context.h:16: virtual void GetAllManifests(const GetAllManifestsCallback& callback) = 0; Tommy, To ...
4 years ago (2016-12-07 12:33:02 UTC) #4
tommyt
https://codereview.chromium.org/2556433002/diff/20001/content/public/browser/payment_app_context.h File content/public/browser/payment_app_context.h (right): https://codereview.chromium.org/2556433002/diff/20001/content/public/browser/payment_app_context.h#newcode16 content/public/browser/payment_app_context.h:16: virtual void GetAllManifests(const GetAllManifestsCallback& callback) = 0; On 2016/12/07 ...
4 years ago (2016-12-07 12:41:54 UTC) #5
zino
PTAL + rouslan@ (and tommyt@) for content/browser/payments + Avi@ for other parts of content directory.
4 years ago (2016-12-11 18:47:11 UTC) #10
Avi (use Gerrit)
non payment content lgtm
4 years ago (2016-12-11 23:30:27 UTC) #11
please use gerrit instead
https://codereview.chromium.org/2556433002/diff/80001/content/browser/payments/payment_app_content_unittest_base.cc File content/browser/payments/payment_app_content_unittest_base.cc (right): https://codereview.chromium.org/2556433002/diff/80001/content/browser/payments/payment_app_content_unittest_base.cc#newcode44 content/browser/payments/payment_app_content_unittest_base.cc:44: payment_app_context_ = new PaymentAppContextImpl(); Can you initialize payment_app_context_ in ...
4 years ago (2016-12-12 20:17:40 UTC) #17
zino
Thank you for review. I addressed all your comments. Could you please review again? https://codereview.chromium.org/2556433002/diff/80001/content/browser/payments/payment_app_content_unittest_base.cc ...
4 years ago (2016-12-16 19:45:41 UTC) #19
please use gerrit instead
https://codereview.chromium.org/2556433002/diff/180001/content/browser/payments/payment_app_content_unittest_base.cc File content/browser/payments/payment_app_content_unittest_base.cc (right): https://codereview.chromium.org/2556433002/diff/180001/content/browser/payments/payment_app_content_unittest_base.cc#newcode12 content/browser/payments/payment_app_content_unittest_base.cc:12: #include "content/browser/service_worker/service_worker_context_wrapper.h" You don't use ServiceWorkerContextWrapper anywhere here. https://codereview.chromium.org/2556433002/diff/180001/content/browser/payments/payment_app_content_unittest_base.cc#newcode14 ...
4 years ago (2016-12-16 21:41:22 UTC) #20
zino
Thank you for review. I addressed your comments. https://codereview.chromium.org/2556433002/diff/180001/content/browser/payments/payment_app_content_unittest_base.cc File content/browser/payments/payment_app_content_unittest_base.cc (right): https://codereview.chromium.org/2556433002/diff/180001/content/browser/payments/payment_app_content_unittest_base.cc#newcode12 content/browser/payments/payment_app_content_unittest_base.cc:12: #include ...
4 years ago (2016-12-17 17:11:54 UTC) #21
please use gerrit instead
LGTM % nit https://codereview.chromium.org/2556433002/diff/180001/content/browser/payments/payment_app_content_unittest_base.cc File content/browser/payments/payment_app_content_unittest_base.cc (right): https://codereview.chromium.org/2556433002/diff/180001/content/browser/payments/payment_app_content_unittest_base.cc#newcode12 content/browser/payments/payment_app_content_unittest_base.cc:12: #include "content/browser/service_worker/service_worker_context_wrapper.h" On 2016/12/17 17:11:54, zino ...
4 years ago (2016-12-19 14:48:05 UTC) #26
zino
On 2016/12/19 14:48:05, rouslan wrote: > LGTM % nit > > https://codereview.chromium.org/2556433002/diff/180001/content/browser/payments/payment_app_content_unittest_base.cc > File content/browser/payments/payment_app_content_unittest_base.cc ...
4 years ago (2016-12-19 15:09:29 UTC) #27
please use gerrit instead
On 2016/12/19 15:09:29, zino wrote: > If we don't include the header, we will meet ...
4 years ago (2016-12-19 15:17:17 UTC) #28
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/2556433002/200001
4 years ago (2016-12-19 18:28:01 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:200001)
4 years ago (2016-12-19 20:45:31 UTC) #39
commit-bot: I haz the power
4 years ago (2016-12-19 20:49:53 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e7f7d131d832a62ea5e480c7781736acfba90f62
Cr-Commit-Position: refs/heads/master@{#439546}

Powered by Google App Engine
This is Rietveld 408576698