Layered component for web payments
This patch splits up //components/payments into two layers to
accommodate usage in iOS.
//components/payments/core - Can be used from iOS.
//components/payments/content - Cannot be used from iOS.
Based on layering instructions:
https://www.chromium.org/developers/design-documents/structure-of-layered-components-within-the-chromium-codebase
BUG=679381
Review-Url: https://codereview.chromium.org/2713033004
Cr-Commit-Position: refs/heads/master@{#453344}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 902e4c26..00e9a117 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1370,7 +1370,7 @@
public_deps = [
"//chrome/common",
"//components/autofill/core/browser",
- "//components/payments:payment_validation",
+ "//components/payments/core",
"//components/sync",
"//content/public/browser",
"//sql",
@@ -1462,8 +1462,8 @@
"//components/password_manager/core/browser",
"//components/password_manager/core/common",
"//components/password_manager/sync/browser",
- "//components/payments:payment_app",
- "//components/payments:payment_request",
+ "//components/payments/content:payment_app",
+ "//components/payments/content:payment_request",
"//components/policy:generated",
"//components/policy/core/browser",
"//components/policy/proto",
@@ -3038,7 +3038,7 @@
"//chrome/browser/android/webapk:proto",
"//components/cdm/browser",
"//components/data_usage/android",
- "//components/payments/android:payments_jni",
+ "//components/payments/content/android",
"//components/precache/content",
"//components/precache/core",
"//components/resources:components_resources",
@@ -3612,7 +3612,7 @@
"payments/payment_request_factory.cc",
"payments/payment_request_factory.h",
]
- deps += [ "//components/payments:payment_request_impl" ]
+ deps += [ "//components/payments/content:payment_request_impl" ]
}
if (is_linux || is_win) {