Index: components/ntp_snippets/BUILD.gn |
diff --git a/components/ntp_snippets/BUILD.gn b/components/ntp_snippets/BUILD.gn |
index 88f88dbdeb579879448b75e89506de1b941f7ccc..4aaef09b178319dfce2ea8f284cb48b08cc8ce3a 100644 |
--- a/components/ntp_snippets/BUILD.gn |
+++ b/components/ntp_snippets/BUILD.gn |
@@ -2,6 +2,13 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/ui.gni") |
+ |
+if (is_android) { |
+ import("//build/config/android/config.gni") |
+ import("//build/config/android/rules.gni") |
+} |
+ |
# GYP version: components/ntp_snippets.gypi:ntp_snippets |
source_set("ntp_snippets") { |
sources = [ |
@@ -46,6 +53,14 @@ source_set("ntp_snippets") { |
] |
} |
+if (is_android) { |
+ java_cpp_enum("ntp_snippets_java_enums_srcjar") { |
+ sources = [ |
+ "ntp_snippets_service.h", |
+ ] |
+ } |
+} |
+ |
source_set("unit_tests") { |
testonly = true |
sources = [ |
@@ -61,6 +76,7 @@ source_set("unit_tests") { |
"//components/image_fetcher", |
"//components/leveldb_proto:test_support", |
"//components/signin/core/browser:test_support", |
+ "//components/signin/core/common", |
"//components/sync_driver:test_support", |
"//net:test_support", |
"//testing/gtest", |