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

Issue 2802043002: Use web-app manifest format for Android payment apps. (Closed)

Created:
3 years, 8 months ago by please use gerrit instead
Modified:
3 years, 8 months ago
Reviewers:
Mathieu, palmer, gogerald1
CC:
Aaron Boodman, abarth-chromium, agrieve+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, gogerald+paymentswatch_chromium.org, jam, mahmadi+paymentswatch_chromium.org, qsr+mojo_chromium.org, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use web-app manifest format for Android payment apps. Payment manifest has been split in two: 1. Payment method manifest. Example: { "default_applications": ["https://bobpay.com/app.json"], "supported_origins": ["https://alicepay.com"] } 2. Web app manifest. Example: { "related_applications": [{ "platform": "play", "id": "com.bobpay.app", "min_version": "1", "fingerprints": [{ "type": "sha256_cert", "value": "59:5C:88:65:FF:C4:E8:20:CF:F7:3E:C8:64:D0:95:F0:06:19" }] }] } Only "default_applications" is used in this patch. The "supported_origins" field will be used in an upcoming patch. Using these manifests is behind a flag: chrome://flags/#android-payment-apps Intent to implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/YlMpaO-E2mE/-_GgiMiRCgAJ Design: https://docs.google.com/document/d/1izV4uC-tiRJG3JLooqY3YRLU22tYOsLTNq0P_InPJeE Explainer: https://github.com/zkoch/zkoch.github.io/blob/master/pmi-v2.md BUG=683329 Review-Url: https://codereview.chromium.org/2802043002 Cr-Commit-Position: refs/heads/master@{#463342} Committed: https://chromium.googlesource.com/chromium/src/+/672f4038a349267944659172c475417bca72b22f

Patch Set 1 #

Patch Set 2 : Update comment #

Total comments: 12

Patch Set 3 : Address comments #

Total comments: 21

Patch Set 4 : Add 'sandboxed' to comment. #

Patch Set 5 : Address java comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1238 lines, -453 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java View 1 2 3 4 6 chunks +101 lines, -70 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFinderTest.java View 1 2 3 4 3 chunks +32 lines, -17 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/payments/PaymentManifestVerifierTest.java View 6 chunks +84 lines, -39 lines 0 comments Download
M components/payments/content/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M components/payments/content/android/java/src/org/chromium/components/payments/PaymentManifestDownloader.java View 1 2 3 4 3 chunks +27 lines, -7 lines 0 comments Download
M components/payments/content/android/java/src/org/chromium/components/payments/PaymentManifestParser.java View 3 chunks +56 lines, -17 lines 0 comments Download
M components/payments/content/android/payment_manifest_downloader_android.cc View 1 2 3 chunks +60 lines, -20 lines 0 comments Download
M components/payments/content/android/payment_manifest_parser_android.h View 1 chunk +7 lines, -1 line 0 comments Download
M components/payments/content/android/payment_manifest_parser_android.cc View 1 2 5 chunks +58 lines, -26 lines 0 comments Download
M components/payments/content/payment_manifest_downloader.h View 1 2 3 chunks +36 lines, -27 lines 0 comments Download
M components/payments/content/payment_manifest_downloader.cc View 1 2 3 chunks +18 lines, -9 lines 0 comments Download
M components/payments/content/payment_manifest_downloader_unittest.cc View 15 chunks +72 lines, -18 lines 0 comments Download
M components/payments/content/payment_manifest_parser.mojom View 1 2 1 chunk +13 lines, -7 lines 0 comments Download
M components/payments/content/payment_manifest_parser_host.h View 1 2 4 chunks +22 lines, -10 lines 0 comments Download
M components/payments/content/payment_manifest_parser_host.cc View 1 2 3 chunks +108 lines, -23 lines 0 comments Download
M components/payments/content/utility/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/content/utility/payment_manifest_parser.h View 1 2 3 1 chunk +30 lines, -11 lines 0 comments Download
M components/payments/content/utility/payment_manifest_parser.cc View 1 2 4 chunks +96 lines, -46 lines 0 comments Download
M components/payments/content/utility/payment_manifest_parser_unittest.cc View 2 chunks +412 lines, -104 lines 0 comments Download
M components/payments_strings.grdp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 55 (43 generated)
please use gerrit instead
Mathieu, ptal C++. Ganggui, ptal Java. Chris, ptal payment_manifest_parser.mojom.
3 years, 8 months ago (2017-04-06 22:47:04 UTC) #21
Mathieu
c++ lgtm, thanks https://codereview.chromium.org/2802043002/diff/100001/components/payments/content/android/payment_manifest_parser_android.cc File components/payments/content/android/payment_manifest_parser_android.cc (right): https://codereview.chromium.org/2802043002/diff/100001/components/payments/content/android/payment_manifest_parser_android.cc#newcode33 components/payments/content/android/payment_manifest_parser_android.cc:33: if (webAppManifestUrls.empty()) { c++ case plz ...
3 years, 8 months ago (2017-04-07 13:29:07 UTC) #26
Mathieu
nit https://codereview.chromium.org/2802043002/diff/100001/components/payments/content/utility/payment_manifest_parser.cc File components/payments/content/utility/payment_manifest_parser.cc (right): https://codereview.chromium.org/2802043002/diff/100001/components/payments/content/utility/payment_manifest_parser.cc#newcode44 components/payments/content/utility/payment_manifest_parser.cc:44: if (!dict->GetList("default_applications", &list) || !list) same as below, ...
3 years, 8 months ago (2017-04-07 13:32:34 UTC) #27
please use gerrit instead
https://codereview.chromium.org/2802043002/diff/100001/components/payments/content/android/payment_manifest_parser_android.cc File components/payments/content/android/payment_manifest_parser_android.cc (right): https://codereview.chromium.org/2802043002/diff/100001/components/payments/content/android/payment_manifest_parser_android.cc#newcode33 components/payments/content/android/payment_manifest_parser_android.cc:33: if (webAppManifestUrls.empty()) { On 2017/04/07 13:29:06, Mathieu wrote: > ...
3 years, 8 months ago (2017-04-07 16:56:30 UTC) #32
palmer
lgtm https://codereview.chromium.org/2802043002/diff/120001/components/payments/content/utility/payment_manifest_parser.h File components/payments/content/utility/payment_manifest_parser.h (right): https://codereview.chromium.org/2802043002/diff/120001/components/payments/content/utility/payment_manifest_parser.h#newcode18 components/payments/content/utility/payment_manifest_parser.h:18: // only in a utility process. Nit: Maybe ...
3 years, 8 months ago (2017-04-07 18:14:29 UTC) #34
please use gerrit instead
https://codereview.chromium.org/2802043002/diff/120001/components/payments/content/utility/payment_manifest_parser.h File components/payments/content/utility/payment_manifest_parser.h (right): https://codereview.chromium.org/2802043002/diff/120001/components/payments/content/utility/payment_manifest_parser.h#newcode18 components/payments/content/utility/payment_manifest_parser.h:18: // only in a utility process. On 2017/04/07 18:14:29, ...
3 years, 8 months ago (2017-04-07 19:23:20 UTC) #37
gogerald1
https://codereview.chromium.org/2802043002/diff/120001/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/2802043002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java#newcode92 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java:92: private int mPendingWebAppManifestsNumber; mPendingWebAppManifestsCount would be a little better? ...
3 years, 8 months ago (2017-04-07 19:36:17 UTC) #39
please use gerrit instead
Ganggui, ptal patch 5. https://codereview.chromium.org/2802043002/diff/120001/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/2802043002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java#newcode92 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java:92: private int mPendingWebAppManifestsNumber; On 2017/04/07 ...
3 years, 8 months ago (2017-04-08 18:54:48 UTC) #44
gogerald1
lgtm https://codereview.chromium.org/2802043002/diff/120001/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/2802043002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java#newcode162 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java:162: mCallback.onInvalidManifest(mMethodName); On 2017/04/08 18:54:48, ಠ_ಠ wrote: > On ...
3 years, 8 months ago (2017-04-10 15:16:24 UTC) #47
please use gerrit instead
Sending to cq. https://codereview.chromium.org/2802043002/diff/120001/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/2802043002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java#newcode190 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentManifestVerifier.java:190: for (AppInfo appInfo : mMatchingApps) { ...
3 years, 8 months ago (2017-04-10 15:46:06 UTC) #49
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/2802043002/160001
3 years, 8 months ago (2017-04-10 16:06:45 UTC) #52
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 18:54:14 UTC) #55
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/672f4038a349267944659172c475...

Powered by Google App Engine
This is Rietveld 408576698