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

Issue 2565423002: Revert of PaymentApp: Introduce PaymentAppDatabase class. (Closed)

Created:
4 years ago by vasilii
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

Revert of PaymentApp: Introduce PaymentAppDatabase class. (patchset #3 id:100001 of https://codereview.chromium.org/2560293002/ ) Reason for revert: Broke content_unittests: [ RUN ] PaymentAppManagerTest.SetAndGetManifest [libprotobuf ERROR c:\b\c\b\win\src\third_party\protobuf\src\google\protobuf\message_lite.cc:120] Can't parse message of type "content.PaymentAppManifestProto" because it is missing required fields: (cannot determine missing fields for lite message) c:\b\c\b\win\src\content\browser\payments\payment_app_manager_unittest.cc(145): error: Value of: payments::mojom::PaymentAppManifestError::NONE Actual: PaymentAppManifestError::NONE Expected: read_error Which is: PaymentAppManifestError::MANIFEST_STORAGE_OPERATION_FAILED [ FAILED ] PaymentAppManagerTest.SetAndGetManifest (3 ms) Original issue's description: > PaymentApp: Introduce PaymentAppDatabase class. > > The class is providing APIs to read/write payment app related data(e.g. manifest > and associated service worker). It can be shared between payment_app_manager.cc > and payment_app_context.cc. > > The payment_app_manager.cc contains a actual implementation of the > PaymentAppManager interface[1] used on the page or worker. > Also, the payment_app_context.cc can be used to query all manifests data[2] > in order to update payment request UI in Chrome layer. > > We can summarize this CL as follows. > 1. Rename PaymentAppContext in content/browser/payments to > PaymentAppContextImpl and then add PaymentAppContext interface in > content/public to expose some APIs to Chrome layer. > 2. Write PaymentAppDatabase class and then move most of logics to access > database from PaymentAppManager to the new class. > 3. Add a interface to query all manifests data in Chrome layer but it's not > implemented yet in this CL. It will be implemented in follow-up CL[2]. > > [1] https://w3c.github.io/webpayments-payment-apps-api/#payment-app-manager > [2] https://codereview.chromium.org/2556433002 > > BUG=661608 > TEST=existing unittests > > Review-Url: https://codereview.chromium.org/2560293002 TBR=rouslan@chromium.org,avi@chromium.org,tommyt@opera.com,jinho.bang@samsung.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=661608 Committed: https://crrev.com/e4e2b2b1b5841b99d4745651345f0fd2994885b2 Cr-Commit-Position: refs/heads/master@{#437861}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -472 lines) Patch
M content/browser/BUILD.gn View 1 chunk +2 lines, -4 lines 0 comments Download
A content/browser/payments/payment_app_context.h View 1 chunk +64 lines, -0 lines 0 comments Download
A content/browser/payments/payment_app_context.cc View 1 chunk +69 lines, -0 lines 0 comments Download
D content/browser/payments/payment_app_context_impl.h View 1 chunk +0 lines, -75 lines 0 comments Download
D content/browser/payments/payment_app_context_impl.cc View 1 chunk +0 lines, -93 lines 0 comments Download
D content/browser/payments/payment_app_database.h View 1 chunk +0 lines, -68 lines 0 comments Download
D content/browser/payments/payment_app_database.cc View 1 chunk +0 lines, -178 lines 0 comments Download
M content/browser/payments/payment_app_manager.h View 2 chunks +24 lines, -4 lines 0 comments Download
M content/browser/payments/payment_app_manager.cc View 3 chunks +125 lines, -8 lines 0 comments Download
M content/browser/payments/payment_app_manager_unittest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/storage_partition_impl.h View 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 3 chunks +4 lines, -5 lines 0 comments Download
D content/public/browser/payment_app_context.h View 1 chunk +0 lines, -29 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
vasilii
Created Revert of PaymentApp: Introduce PaymentAppDatabase class.
4 years ago (2016-12-12 13:44:52 UTC) #2
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/2565423002/1
4 years ago (2016-12-12 13:45:10 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-12 13:47:58 UTC) #6
please use gerrit instead
Which bot broke?
4 years ago (2016-12-12 14:03:52 UTC) #7
please use gerrit instead
On 2016/12/12 14:03:52, rouslan wrote: > Which bot broke? Answer for my own question: https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests/builds/33170 ...
4 years ago (2016-12-12 14:29:29 UTC) #8
commit-bot: I haz the power
4 years ago (2016-12-12 15:11:54 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e4e2b2b1b5841b99d4745651345f0fd2994885b2
Cr-Commit-Position: refs/heads/master@{#437861}

Powered by Google App Engine
This is Rietveld 408576698