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

Issue 2838433002: [Payments] Cache payment manifests. (Closed)

Created:
3 years, 8 months ago by gogerald1
Modified:
3 years, 7 months ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, jam, gogerald+paymentswatch_chromium.org, rouslan+payments_chromium.org, darin-cc_chromium.org, mathp+autofillwatch_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org, mahmadi+paymentswatch_chromium.org, estade+watch_chromium.org, vabr+watchlistautofill_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache payment manifests. In this patch: Try to fetch all supported web app ids for the payment method from the cache before downloading its manifest online. If cached web app ids contain all matching apps ids, proceed fetching corresponding web apps manifests from the cache. Otherwise fall back to download the payment method's manifest online. If failed to fetch at least one web app's manifest from the cache, then fall back to download payment method's manifest online. In addition: Cache downloaded and parsed supported web apps ids of the payment method for future reference. Cache downloaded and parsed web app manifest sections for future reference. Refer to below doc for details. https://docs.google.com/a/google.com/document/d/1Ncsp96Ae5836NLOdPwHRzcX3zkgj-4-5fq_nI2azC7M BUG=708508 Review-Url: https://codereview.chromium.org/2838433002 Cr-Commit-Position: refs/heads/master@{#467688} Committed: https://chromium.googlesource.com/chromium/src/+/7947209945cff83f3301963f5a01821d02e100a2

Patch Set 1 #

Patch Set 2 : fix tests #

Total comments: 94

Patch Set 3 : address comments #

Total comments: 34

Patch Set 4 : fix variable names and comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1046 lines, -119 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinder.java View 1 2 3 4 10 chunks +35 lines, -15 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java View 1 2 3 16 chunks +151 lines, -15 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestWebDataService.java View 1 2 3 1 chunk +140 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinderTest.java View 1 2 6 chunks +8 lines, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/payments/PaymentManifestVerifierTest.java View 1 2 9 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/payments/android/chrome_payments_jni_registrar.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/payments/android/payment_manifest_web_data_service_android.h View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/browser/payments/android/payment_manifest_web_data_service_android.cc View 1 2 3 1 chunk +233 lines, -0 lines 0 comments Download
M chrome/browser/ui/profile_error_dialog.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/web_data_service_factory.h View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/web_data_service_factory.cc View 3 chunks +22 lines, -0 lines 0 comments Download
M components/payments/android/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A components/payments/android/payment_manifest_web_data_service.h View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A components/payments/android/payment_manifest_web_data_service.cc View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download
M components/payments/android/web_app_manifest_section_table.h View 1 chunk +7 lines, -5 lines 0 comments Download
M components/payments/android/web_app_manifest_section_table.cc View 1 2 3 chunks +51 lines, -28 lines 0 comments Download
M components/payments/android/web_app_manifest_section_table_unittest.cc View 3 chunks +47 lines, -42 lines 0 comments Download
M components/webdata/common/web_data_results.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M components/webdata_services/web_data_service_wrapper.h View 4 chunks +16 lines, -0 lines 0 comments Download
M components/webdata_services/web_data_service_wrapper.cc View 4 chunks +19 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 78 (57 generated)
gogerald1
Hi rouslan@, ptal,
3 years, 8 months ago (2017-04-21 19:27:13 UTC) #9
please use gerrit instead
Please put some more information in the CL description. Can you make sure the design ...
3 years, 8 months ago (2017-04-21 19:28:23 UTC) #10
gogerald1
On 2017/04/21 19:28:23, ಠ_ಠ wrote: > Please put some more information in the CL description. ...
3 years, 8 months ago (2017-04-21 19:49:45 UTC) #17
please use gerrit instead
> Try to fetch all supported web app ids for the payment > method from ...
3 years, 8 months ago (2017-04-24 15:12:47 UTC) #27
please use gerrit instead
A lot of work here! Good job! https://codereview.chromium.org/2838433002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java (right): https://codereview.chromium.org/2838433002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java#newcode94 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java:94: /** A ...
3 years, 8 months ago (2017-04-24 18:22:33 UTC) #28
gogerald1
Hi rouslan@, please take another look? https://codereview.chromium.org/2838433002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java (right): https://codereview.chromium.org/2838433002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java#newcode94 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java:94: /** A set ...
3 years, 8 months ago (2017-04-26 13:46:33 UTC) #39
please use gerrit instead
Good hustle! Can you work with someone in your office to improve your comments and ...
3 years, 8 months ago (2017-04-26 15:00:45 UTC) #41
gogerald1
Thanks, another look? https://codereview.chromium.org/2838433002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java (right): https://codereview.chromium.org/2838433002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java#newcode203 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java:203: mMethodName.toString(), this)) { On 2017/04/26 15:00:43, ...
3 years, 8 months ago (2017-04-26 17:30:31 UTC) #48
please use gerrit instead
lgtm Do you plan to add the 90 day limit in a follow up or ...
3 years, 8 months ago (2017-04-26 18:20:34 UTC) #49
gogerald1
I will add it in the next CL, Hi pkasting@, ptal of the changes in ...
3 years, 8 months ago (2017-04-26 18:35:44 UTC) #51
gogerald1
Hi jwd@, ptal of the changes in tools/metrics/histograms/histograms.xml
3 years, 8 months ago (2017-04-26 18:38:14 UTC) #53
jwd
histograms LGTM
3 years, 8 months ago (2017-04-26 23:35:58 UTC) #56
Peter Kasting
LGTM
3 years, 8 months ago (2017-04-27 00:28:06 UTC) #57
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/2838433002/180001
3 years, 8 months ago (2017-04-27 00:59:23 UTC) #59
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/421636)
3 years, 8 months ago (2017-04-27 01:10:29 UTC) #61
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/2838433002/200001
3 years, 7 months ago (2017-04-27 14:51:41 UTC) #68
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/422141)
3 years, 7 months ago (2017-04-27 15:04:44 UTC) #70
gogerald1
Hi sky@, ptal of the changes in chrome/browser/web_data_service_factory.cc and chrome/browser/web_data_service_factory.h
3 years, 7 months ago (2017-04-27 15:08:38 UTC) #72
sky
LGTM
3 years, 7 months ago (2017-04-27 15:27:04 UTC) #73
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/2838433002/200001
3 years, 7 months ago (2017-04-27 15:29:41 UTC) #75
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 15:38:46 UTC) #78
Message was sent while issue was closed.
Committed patchset #5 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/7947209945cff83f3301963f5a01...

Powered by Google App Engine
This is Rietveld 408576698