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

Unified Diff: components/url_formatter/BUILD.gn

Issue 2110543004: Move JNI bindings for url_formatter from chrome to //components/url_formatter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « chrome/chrome.gyp ('k') | components/url_formatter/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/BUILD.gn
diff --git a/components/url_formatter/BUILD.gn b/components/url_formatter/BUILD.gn
index d63a1ed6a8fbf01c434b862dc7038a1c299a66d8..6d7d764546f16f78ce46bfbdd3075d7b4dd2db6a 100644
--- a/components/url_formatter/BUILD.gn
+++ b/components/url_formatter/BUILD.gn
@@ -2,14 +2,22 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+if (is_android) {
+ import("//build/config/android/rules.gni")
+}
+
static_library("url_formatter") {
sources = [
+ "android/component_jni_registrar.cc",
+ "android/component_jni_registrar.h",
"elide_url.cc",
"elide_url.h",
"url_fixer.cc",
"url_fixer.h",
"url_formatter.cc",
"url_formatter.h",
+ "url_formatter_android.cc",
+ "url_formatter_android.h",
]
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
@@ -22,7 +30,9 @@ static_library("url_formatter") {
"//url",
]
- if (!is_android) {
+ if (is_android) {
+ deps += [ "android:jni_headers" ]
+ } else {
deps += [ "//ui/gfx" ]
}
}
« no previous file with comments | « chrome/chrome.gyp ('k') | components/url_formatter/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698