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

Issue 2801513002: [Payments] Add web app manifest section table in SQLite web database (Closed)

Created:
3 years, 8 months ago by gogerald1
Modified:
3 years, 8 months ago
CC:
chromium-reviews, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, jam, gogerald+paymentswatch_chromium.org, rouslan+payments_chromium.org, darin-cc_chromium.org, agrieve+watch_chromium.org, mahmadi+paymentswatch_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add web app manifest section table in SQLite web database The table has three columns: {'id', 'min_version', 'fingerprints'}. The table has no primary key. This table is used to reduce payment app's loading time in payment request, refer below doc for details. https://docs.google.com/a/google.com/document/d/1Ncsp96Ae5836NLOdPwHRzcX3zkgj-4-5fq_nI2azC7M/edit?usp=sharing BUG=708508 Review-Url: https://codereview.chromium.org/2801513002 Cr-Commit-Position: refs/heads/master@{#464062} Committed: https://chromium.googlesource.com/chromium/src/+/753494c7f71f9a82c63440f47140e475df7e8771

Patch Set 1 #

Total comments: 63

Patch Set 2 : address comments #

Total comments: 32

Patch Set 3 : fix nits #

Total comments: 16

Patch Set 4 : remove thread check #

Patch Set 5 : move files #

Patch Set 6 : rebase and rename for the new manifest format #

Total comments: 24

Patch Set 7 : address sql comments #

Total comments: 8

Patch Set 8 : simplify #

Total comments: 4

Patch Set 9 : remove std::move for temporary return value #

Total comments: 4

Patch Set 10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -4 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A components/payments/android/BUILD.gn View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
A components/payments/android/DEPS View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A components/payments/android/web_app_manifest_section_table.h View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A components/payments/android/web_app_manifest_section_table.cc View 1 2 3 4 5 6 7 8 9 1 chunk +146 lines, -0 lines 0 comments Download
A components/payments/android/web_app_manifest_section_table_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +138 lines, -0 lines 0 comments Download
M components/webdata_services/BUILD.gn View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/webdata_services/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/webdata_services/web_data_service_wrapper.cc View 1 2 3 4 5 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 135 (100 generated)
gogerald1
Hi rouslan@, ptal, will use this table for verifying payment apps in the next CL,
3 years, 8 months ago (2017-04-05 13:26:09 UTC) #32
please use gerrit instead
Can you expand the CL description? For example, it would be nice to see all ...
3 years, 8 months ago (2017-04-05 19:44:18 UTC) #35
gogerald1
On 2017/04/05 19:44:18, ಠ_ಠ wrote: > Can you expand the CL description? For example, it ...
3 years, 8 months ago (2017-04-05 20:19:41 UTC) #43
please use gerrit instead
https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn File components/payments/content/BUILD.gn (right): https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn#newcode79 components/payments/content/BUILD.gn:79: "//components/webdata/common:common", :common is redundant. Remove. https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn#newcode82 components/payments/content/BUILD.gn:82: "//sql:sql", :sql ...
3 years, 8 months ago (2017-04-05 20:33:31 UTC) #46
gogerald1
Hi rouslan@, please take another look, https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn File components/payments/content/BUILD.gn (right): https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn#newcode79 components/payments/content/BUILD.gn:79: "//components/webdata/common:common", On 2017/04/05 ...
3 years, 8 months ago (2017-04-05 23:38:49 UTC) #58
please use gerrit instead
lgtm https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn File components/payments/content/BUILD.gn (right): https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn#newcode79 components/payments/content/BUILD.gn:79: "//components/webdata/common:common", On 2017/04/05 23:38:48, gogerald1 wrote: > On ...
3 years, 8 months ago (2017-04-06 14:35:29 UTC) #61
gogerald1
Hi pkasting@, please review changes in //components/webdata_services/* https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn File components/payments/content/BUILD.gn (right): https://codereview.chromium.org/2801513002/diff/170001/components/payments/content/BUILD.gn#newcode79 components/payments/content/BUILD.gn:79: "//components/webdata/common:common", On ...
3 years, 8 months ago (2017-04-06 16:42:10 UTC) #63
please use gerrit instead
https://codereview.chromium.org/2801513002/diff/270001/components/payments/content/payment_manifest_section_table.cc File components/payments/content/payment_manifest_section_table.cc (right): https://codereview.chromium.org/2801513002/diff/270001/components/payments/content/payment_manifest_section_table.cc#newcode15 components/payments/content/payment_manifest_section_table.cc:15: using content::BrowserThread; This pollutes the global namespace of header ...
3 years, 8 months ago (2017-04-06 16:47:19 UTC) #66
gogerald1
https://codereview.chromium.org/2801513002/diff/270001/components/payments/content/payment_manifest_section_table.cc File components/payments/content/payment_manifest_section_table.cc (right): https://codereview.chromium.org/2801513002/diff/270001/components/payments/content/payment_manifest_section_table.cc#newcode105 components/payments/content/payment_manifest_section_table.cc:105: DCHECK_CURRENTLY_ON(BrowserThread::DB); On 2017/04/06 16:47:19, ಠ_ಠ wrote: > DCHECK is ...
3 years, 8 months ago (2017-04-06 18:31:55 UTC) #69
please use gerrit instead
https://codereview.chromium.org/2801513002/diff/270001/components/payments/content/payment_manifest_section_table.cc File components/payments/content/payment_manifest_section_table.cc (right): https://codereview.chromium.org/2801513002/diff/270001/components/payments/content/payment_manifest_section_table.cc#newcode105 components/payments/content/payment_manifest_section_table.cc:105: DCHECK_CURRENTLY_ON(BrowserThread::DB); On 2017/04/06 18:31:55, gogerald1 wrote: > On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 18:50:53 UTC) #70
Peter Kasting
LGTM https://codereview.chromium.org/2801513002/diff/270001/components/webdata_services/web_data_service_wrapper.cc File components/webdata_services/web_data_service_wrapper.cc (right): https://codereview.chromium.org/2801513002/diff/270001/components/webdata_services/web_data_service_wrapper.cc#newcode98 components/webdata_services/web_data_service_wrapper.cc:98: base::MakeUnique<payments::PaymentManifestSectionTable>()); Thanks for using MakeUnique! Optional: While here, ...
3 years, 8 months ago (2017-04-06 19:04:36 UTC) #71
gogerald1
Moved the files from //components/payments/content/ to //components/payments/android since its android only for now. PTAL. Hi ...
3 years, 8 months ago (2017-04-07 17:51:07 UTC) #79
gogerald1
Change reviewer since blundell@ is OOO. Hi sdefresne@, ptal of the changes in //components/BUILD.gn.
3 years, 8 months ago (2017-04-07 19:39:34 UTC) #83
sdefresne
components/BUILD.gn lgtm
3 years, 8 months ago (2017-04-10 15:32:09 UTC) #84
gogerald1
Thanks all, submitting
3 years, 8 months ago (2017-04-10 15:43:24 UTC) #85
please use gerrit instead
You've stated that you don't want to include anything content-related in components/webdata_services, so you include ...
3 years, 8 months ago (2017-04-10 16:08:37 UTC) #86
gogerald1
On 2017/04/10 16:08:37, ಠ_ಠ wrote: > You've stated that you don't want to include anything ...
3 years, 8 months ago (2017-04-10 18:27:37 UTC) #87
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/2801513002/390001
3 years, 8 months ago (2017-04-10 18:28:39 UTC) #90
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/407034)
3 years, 8 months ago (2017-04-10 18:42:07 UTC) #92
gogerald1
Hi gbillock@, presubmit said I need LGTM from the owner of //sql for dependency in ...
3 years, 8 months ago (2017-04-10 18:53:59 UTC) #94
gogerald1
Hi rouslan@, another look? rebased and renamed for the new manifest format,
3 years, 8 months ago (2017-04-11 15:59:48 UTC) #97
gogerald1
Change //sql reviewer since gbillock@ looks not working on Chrome anymore. Hi shess@, presubmit said ...
3 years, 8 months ago (2017-04-11 17:01:31 UTC) #98
gogerald1
Change //sql reviewer since gbillock@ looks not working on Chrome anymore. Hi shess@, presubmit said ...
3 years, 8 months ago (2017-04-11 17:02:22 UTC) #100
Scott Hess - ex-Googler
Oops, I reviewed, then looked at previous reviews. Since everyone apparently looked at the fingerprint-generator ...
3 years, 8 months ago (2017-04-11 17:24:06 UTC) #103
gogerald1
Thanks shess@, another look? https://codereview.chromium.org/2801513002/diff/410001/components/payments/android/web_app_manifest_section_table.cc File components/payments/android/web_app_manifest_section_table.cc (right): https://codereview.chromium.org/2801513002/diff/410001/components/payments/android/web_app_manifest_section_table.cc#newcode75 components/payments/android/web_app_manifest_section_table.cc:75: if (!db_->Execute("CREATE TABLE web_app_manifest_section ( ...
3 years, 8 months ago (2017-04-11 19:01:05 UTC) #109
Scott Hess - ex-Googler
Thank you! Found a couple more minor items. https://codereview.chromium.org/2801513002/diff/410001/components/payments/android/web_app_manifest_section_table.cc File components/payments/android/web_app_manifest_section_table.cc (right): https://codereview.chromium.org/2801513002/diff/410001/components/payments/android/web_app_manifest_section_table.cc#newcode99 components/payments/android/web_app_manifest_section_table.cc:99: if ...
3 years, 8 months ago (2017-04-11 19:31:46 UTC) #112
gogerald1
Thanks shess@, one more look? https://codereview.chromium.org/2801513002/diff/410001/components/payments/android/web_app_manifest_section_table.cc File components/payments/android/web_app_manifest_section_table.cc (right): https://codereview.chromium.org/2801513002/diff/410001/components/payments/android/web_app_manifest_section_table.cc#newcode99 components/payments/android/web_app_manifest_section_table.cc:99: if (manifest == nullptr ...
3 years, 8 months ago (2017-04-11 21:53:30 UTC) #116
Scott Hess - ex-Googler
Thanks for the changes. LGTM with nits. [Otherwise, THUNDERDOME!] https://codereview.chromium.org/2801513002/diff/530001/components/payments/android/web_app_manifest_section_table_unittest.cc File components/payments/android/web_app_manifest_section_table_unittest.cc (right): https://codereview.chromium.org/2801513002/diff/530001/components/payments/android/web_app_manifest_section_table_unittest.cc#newcode31 components/payments/android/web_app_manifest_section_table_unittest.cc:31: ...
3 years, 8 months ago (2017-04-11 23:37:11 UTC) #119
pwnall
RS LGTM
3 years, 8 months ago (2017-04-12 05:27:49 UTC) #121
gogerald1
Thanks https://codereview.chromium.org/2801513002/diff/530001/components/payments/android/web_app_manifest_section_table_unittest.cc File components/payments/android/web_app_manifest_section_table_unittest.cc (right): https://codereview.chromium.org/2801513002/diff/530001/components/payments/android/web_app_manifest_section_table_unittest.cc#newcode31 components/payments/android/web_app_manifest_section_table_unittest.cc:31: std::unique_ptr<std::vector<uint8_t>> GenerateFingerprint(uint8_t seed) { On 2017/04/11 23:37:10, Scott ...
3 years, 8 months ago (2017-04-12 13:55:18 UTC) #123
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2801513002/diff/550001/components/payments/android/web_app_manifest_section_table.cc File components/payments/android/web_app_manifest_section_table.cc (right): https://codereview.chromium.org/2801513002/diff/550001/components/payments/android/web_app_manifest_section_table.cc#newcode98 components/payments/android/web_app_manifest_section_table.cc:98: DCHECK(manifest != nullptr); Either DCHECK_NE(nullptr, manifest) ...
3 years, 8 months ago (2017-04-12 14:28:10 UTC) #126
Scott Hess - ex-Googler
On 2017/04/12 13:55:18, gogerald1 wrote: > Thanks > > https://codereview.chromium.org/2801513002/diff/530001/components/payments/android/web_app_manifest_section_table_unittest.cc > File components/payments/android/web_app_manifest_section_table_unittest.cc > (right): ...
3 years, 8 months ago (2017-04-12 14:35:35 UTC) #127
gogerald1
Thanks all, sending to CQ https://codereview.chromium.org/2801513002/diff/550001/components/payments/android/web_app_manifest_section_table.cc File components/payments/android/web_app_manifest_section_table.cc (right): https://codereview.chromium.org/2801513002/diff/550001/components/payments/android/web_app_manifest_section_table.cc#newcode98 components/payments/android/web_app_manifest_section_table.cc:98: DCHECK(manifest != nullptr); On ...
3 years, 8 months ago (2017-04-12 15:27:36 UTC) #128
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/2801513002/570001
3 years, 8 months ago (2017-04-12 15:28:53 UTC) #131
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 17:22:01 UTC) #135
Message was sent while issue was closed.
Committed patchset #10 (id:570001) as
https://chromium.googlesource.com/chromium/src/+/753494c7f71f9a82c63440f47140...

Powered by Google App Engine
This is Rietveld 408576698