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

Unified Diff: components/safe_json/android/BUILD.gn

Issue 1203083002: Add a JSON sanitizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: x Created 5 years, 5 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/safe_json/android/BUILD.gn
diff --git a/components/precache/android/BUILD.gn b/components/safe_json/android/BUILD.gn
similarity index 50%
copy from components/precache/android/BUILD.gn
copy to components/safe_json/android/BUILD.gn
index 537150b533b654e4708c4d0153b0ae47fe9e55f1..bd8480bf086b4ec13b4b2d49e8a05d979e4429a4 100644
--- a/components/precache/android/BUILD.gn
+++ b/components/safe_json/android/BUILD.gn
@@ -4,18 +4,18 @@
import("//build/config/android/rules.gni")
-# GYP: //components/precache.gypi:precache_java
-android_library("precache_java") {
- deps = [
- "//base:base_java",
+# GYP: //components/safe_json.gypi:safe_json_jni_headers
+generate_jni("safe_json_jni_headers") {
+ sources = [
+ "java/src/org/chromium/components/safejson/JsonSanitizer.java",
]
- DEPRECATED_java_in_dir = "java/src"
+ jni_package = "safe_json"
}
-android_library("precache_javatests") {
+# GYP: //components/safe_json.gypi:safe_json_java
+android_library("safe_json_java") {
deps = [
- "//base:base_java_test_support",
- ":precache_java",
+ "//base:base_java",
]
- DEPRECATED_java_in_dir = "javatests/src"
+ DEPRECATED_java_in_dir = "java/src"
}

Powered by Google App Engine
This is Rietveld 408576698