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

Unified Diff: components/web_restrictions/BUILD.gn

Issue 1631603002: Web restrictions component only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/web_restrictions/BUILD.gn
diff --git a/components/web_restrictions/BUILD.gn b/components/web_restrictions/BUILD.gn
index 141449a859ade67be0802bccbb1cbbc49c2b6152..dc737571a1209cd56b07c9e44ceb4c63225ade17 100644
--- a/components/web_restrictions/BUILD.gn
+++ b/components/web_restrictions/BUILD.gn
@@ -4,17 +4,44 @@
import("//build/config/android/rules.gni")
-# GYP: components.gyp:web_restrictions_java
-android_library("web_restrictions_java") {
- java_files = [ "java/src/org/chromium/components/webrestrictions/WebRestrictionsContentProvider.java" ]
-}
+if (is_android) {
+ # GYP: components.gyp:web_restrictions_java
+ android_library("web_restrictions_java") {
+ java_files = [ "java/src/org/chromium/components/webrestrictions/WebRestrictionsContentProvider.java" ]
+ }
+
+ # GYP: //components/components_test.gyp:components_junit_tests
+ junit_binary("components_web_restrictions_junit_tests") {
+ java_files = [ "junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java" ]
+ deps = [
+ ":web_restrictions_java",
+ "//base:base_java",
+ "//third_party/junit:hamcrest",
+ ]
+ }
+
+ generate_jni("web_restrictions_jni_headers") {
+ sources = [
+ "java/src/org/chromium/components/webrestrictions/ContentResolverWebRestrictionsProvider.java",
+ ]
+ jni_package = "web_restrictions"
+ }
-# GYP: //components/components_test.gyp:components_junit_tests
-junit_binary("components_web_restrictions_junit_tests") {
- java_files = [ "junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java" ]
- deps = [
- ":web_restrictions_java",
- "//base:base_java",
- "//third_party/junit:hamcrest",
- ]
+ # GYP: components.gyp:web_restrictions
+ static_library("web_restrictions") {
+ sources = [
+ "content_resolver_web_restrictions_provider.cc",
+ "content_resolver_web_restrictions_provider.h",
+ "web_restrictions_gin_wrapper.cc",
+ "web_restrictions_gin_wrapper.h",
+ "web_restrictions_provider.h",
+ "web_restrictions_resource_throttle.cc",
+ "web_restrictions_resource_throttle.h",
+ ]
+ deps = [
+ ":web_restrictions_jni_headers",
+ "//base",
+ "//content/public/browser",
+ ]
+ }
}

Powered by Google App Engine
This is Rietveld 408576698