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

Issue 2759283002: Make payment manifest download/parse cross-platform (Closed)

Created:
3 years, 9 months ago by please use gerrit instead
Modified:
3 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, blundell+watchlist_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, droger+watchlist_chromium.org, gogerald+paymentswatch_chromium.org, jam, mahmadi+paymentswatch_chromium.org, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, rouslan+payments_chromium.org, sdefresne+watchlist_chromium.org, sebsg+paymentswatch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make payment manifest download/parse cross-platform Reason for the refactor is an upcoming change to download/parse the payment manifest on desktop in addition to Android. 1) This patch moves downloader and parser utility into cross-platform directory //components/payments/content. 2) The cross-platform PaymentManifestParserHost has been separated from its Android wrapper PaymentManifestParserAndroid. 3) GN build target renames: a) Payments mojom targets have been renamed to include the string "mojom" for clarity. b) The main target of "//components/payments/content" has been renamed to "content" for brevity. c) The "//components/payments/content:payment_validators" target has been renamed to "//components/payments/content:utils", because it now contains manifest downloader and parser. Manifest download is currently used only on Android after enabling the chrome://flags/#android-payment-apps flag. BUG=683329 Review-Url: https://codereview.chromium.org/2759283002 Cr-Commit-Position: refs/heads/master@{#460141} Committed: https://chromium.googlesource.com/chromium/src/+/bb7522e6433d4aa05dd81026c42559f9ca2011e6

Patch Set 1 #

Patch Set 2 : Fix dep #

Patch Set 3 : Fix duplicate resource identifier. #

Total comments: 12

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -1393 lines) Patch
M chrome/android/BUILD.gn View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/utility/BUILD.gn View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/utility/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M components/BUILD.gn View 2 chunks +1 line, -2 lines 0 comments Download
M components/payments/content/BUILD.gn View 4 chunks +45 lines, -25 lines 0 comments Download
M components/payments/content/DEPS View 1 chunk +6 lines, -0 lines 0 comments Download
M components/payments/content/android/BUILD.gn View 1 2 chunks +4 lines, -41 lines 0 comments Download
M components/payments/content/android/DEPS View 1 chunk +0 lines, -6 lines 0 comments Download
D components/payments/content/android/payment_manifest_downloader.h View 1 chunk +0 lines, -98 lines 0 comments Download
D components/payments/content/android/payment_manifest_downloader.cc View 1 chunk +0 lines, -120 lines 0 comments Download
M components/payments/content/android/payment_manifest_downloader_android.cc View 1 chunk +1 line, -1 line 0 comments Download
D components/payments/content/android/payment_manifest_downloader_unittest.cc View 1 chunk +0 lines, -205 lines 0 comments Download
D components/payments/content/android/payment_manifest_parser.mojom View 1 chunk +0 lines, -19 lines 0 comments Download
M components/payments/content/android/payment_manifest_parser_android.h View 2 chunks +4 lines, -20 lines 0 comments Download
M components/payments/content/android/payment_manifest_parser_android.cc View 5 chunks +16 lines, -73 lines 0 comments Download
D components/payments/content/android/utility/BUILD.gn View 1 chunk +0 lines, -29 lines 0 comments Download
D components/payments/content/android/utility/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
D components/payments/content/android/utility/fingerprint_parser.h View 1 chunk +0 lines, -21 lines 0 comments Download
D components/payments/content/android/utility/fingerprint_parser.cc View 1 chunk +0 lines, -50 lines 0 comments Download
D components/payments/content/android/utility/fingerprint_parser_unittest.cc View 1 chunk +0 lines, -90 lines 0 comments Download
D components/payments/content/android/utility/payment_manifest_parser.h View 1 chunk +0 lines, -51 lines 0 comments Download
D components/payments/content/android/utility/payment_manifest_parser.cc View 1 chunk +0 lines, -142 lines 0 comments Download
D components/payments/content/android/utility/payment_manifest_parser_unittest.cc View 1 chunk +0 lines, -185 lines 0 comments Download
A + components/payments/content/payment_manifest_downloader.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/payments/content/payment_manifest_downloader.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/payments/content/payment_manifest_downloader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/payments/content/payment_manifest_parser.mojom View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/payments/content/payment_manifest_parser_host.h View 1 2 3 3 chunks +24 lines, -30 lines 0 comments Download
A + components/payments/content/payment_manifest_parser_host.cc View 1 2 1 chunk +38 lines, -129 lines 0 comments Download
A + components/payments/content/utility/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A + components/payments/content/utility/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/payments/content/utility/fingerprint_parser.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/payments/content/utility/fingerprint_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/payments/content/utility/fingerprint_parser_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/payments/content/utility/payment_manifest_parser.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/payments/content/utility/payment_manifest_parser.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A + components/payments/content/utility/payment_manifest_parser_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M components/payments_strings.grdp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M content/test/BUILD.gn View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 48 (31 generated)
please use gerrit instead
Mathieu, ptal overall.
3 years, 9 months ago (2017-03-20 21:06:31 UTC) #9
Mathieu
Pretty great! lgtm https://codereview.chromium.org/2759283002/diff/100001/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): https://codereview.chromium.org/2759283002/diff/100001/chrome/utility/chrome_content_utility_client.cc#newcode290 chrome/utility/chrome_content_utility_client.cc:290: registry->AddInterface(base::Bind(&payments::PaymentManifestParser::Create)); are we not binding it ...
3 years, 9 months ago (2017-03-21 20:18:12 UTC) #18
please use gerrit instead
https://codereview.chromium.org/2759283002/diff/100001/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): https://codereview.chromium.org/2759283002/diff/100001/chrome/utility/chrome_content_utility_client.cc#newcode290 chrome/utility/chrome_content_utility_client.cc:290: registry->AddInterface(base::Bind(&payments::PaymentManifestParser::Create)); On 2017/03/21 20:18:12, Mathieu Perreault wrote: > are ...
3 years, 9 months ago (2017-03-21 20:34:52 UTC) #19
please use gerrit instead
agrieve, ptal chrome/android/BUILD.gn in patch 4. thakis, ptal chrome/utility/* in patch 4. jochen, ptal components/BUILD.gn ...
3 years, 9 months ago (2017-03-21 20:45:34 UTC) #23
Nico
chrome/utility lgtm In the CL description, please prepend the first line with some context, else ...
3 years, 9 months ago (2017-03-21 20:52:22 UTC) #24
please use gerrit instead
On 2017/03/21 20:52:22, Nico wrote: > In the CL description, please prepend the first line ...
3 years, 9 months ago (2017-03-21 20:56:19 UTC) #26
agrieve
On 2017/03/21 20:56:19, ಠ_ಠ wrote: > On 2017/03/21 20:52:22, Nico wrote: > > In the ...
3 years, 9 months ago (2017-03-22 00:21:08 UTC) #29
jochen (gone - plz use gerrit)
content/ and components/BUILD.gn lgtm
3 years, 9 months ago (2017-03-22 10:05:25 UTC) #30
haraken
LGTM
3 years, 9 months ago (2017-03-27 13:50:56 UTC) #31
palmer
lgtm
3 years, 9 months ago (2017-03-27 23:58:13 UTC) #33
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/2759283002/120001
3 years, 8 months ago (2017-03-28 14:08:55 UTC) #36
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/396287)
3 years, 8 months ago (2017-03-28 14:15:55 UTC) #38
please use gerrit instead
jkarlin, net owners ptal for the +net dep. ** Presubmit ERRORS ** You need LGTM ...
3 years, 8 months ago (2017-03-28 14:44:58 UTC) #40
jkarlin
+net in components/payments/content/DEPS lgtm
3 years, 8 months ago (2017-03-28 14:50:42 UTC) #41
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/2759283002/120001
3 years, 8 months ago (2017-03-28 14:53:54 UTC) #43
commit-bot: I haz the power
Committed patchset #4 (id:120001) as https://chromium.googlesource.com/chromium/src/+/bb7522e6433d4aa05dd81026c42559f9ca2011e6
3 years, 8 months ago (2017-03-28 17:07:11 UTC) #46
wychen
3 years, 8 months ago (2017-03-28 19:18:01 UTC) #48
Message was sent while issue was closed.
clank build with ToT was broken.

ERROR Unresolved dependencies.
//clank/java:clank_java__build_config(//build/toolchain/android:android_clang_arm)
  needs
//components/payments/content:payment_request_java__build_config(//build/toolchain/android:android_clang_arm)
//clank/java:clank_java__compile_java__javac(//build/toolchain/android:android_clang_arm)
  needs
//components/payments/content:payment_request_java(//build/toolchain/android:android_clang_arm)
//clank/java:clank_java__compile_java__process_prebuilt__assert(//build/toolchain/android:android_clang_arm)
  needs
//components/payments/content:payment_request_java(//build/toolchain/android:android_clang_arm)
//clank/java:clank_java__compile_java__process_prebuilt__copy(//build/toolchain/android:android_clang_arm)
  needs
//components/payments/content:payment_request_java(//build/toolchain/android:android_clang_arm)
//clank/java:clank_java__compile_java__process_prebuilt__filter(//build/toolchain/android:android_clang_arm)
  needs
//components/payments/content:payment_request_java(//build/toolchain/android:android_clang_arm)
//clank/java:clank_java__lint(//build/toolchain/android:android_clang_arm)
  needs
//components/payments/content:payment_request_java(//build/toolchain/android:android_clang_arm)

Powered by Google App Engine
This is Rietveld 408576698