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}
diff --git a/chrome/utility/BUILD.gn b/chrome/utility/BUILD.gn
index 7da4a0f..2f48b54 100644
--- a/chrome/utility/BUILD.gn
+++ b/chrome/utility/BUILD.gn
@@ -38,6 +38,7 @@
"//chrome:strings",
"//chrome/common",
"//chrome/common:mojo_bindings",
+ "//components/payments/content/utility",
"//components/safe_json/utility",
"//components/search_engines",
"//components/strings",
@@ -98,10 +99,6 @@
]
}
- if (is_android) {
- deps += [ "//components/payments/content/android/utility" ]
- }
-
if (enable_extensions) {
sources += [
"extensions/extensions_handler.cc",