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

Unified Diff: components/ntp_tiles/BUILD.gn

Issue 1983063002: Move classes to //components/ntp_tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/ntp_tiles/BUILD.gn
diff --git a/components/ntp_tiles/BUILD.gn b/components/ntp_tiles/BUILD.gn
index e524f62db9fd045d4b9d9b785a777b8875a38f2d..2b5f911fb5e61f860a05b72ecc3580c82f6a9759 100644
--- a/components/ntp_tiles/BUILD.gn
+++ b/components/ntp_tiles/BUILD.gn
@@ -2,9 +2,18 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+assert(!is_ios)
Marc Treib 2016/05/17 15:50:25 Do we want to keep the assert here? If so, then I
sfiera 2016/05/18 08:43:42 Figuring out why ios broke was enough of annoyance
+if (is_android) {
+ import("//build/config/android/rules.gni")
+}
+
# GYP version: components/ntp_tiles.gypi:ntp_tiles
source_set("ntp_tiles") {
sources = [
+ "most_visited_sites.cc",
+ "most_visited_sites.h",
+ "popular_sites.cc",
+ "popular_sites.h",
"pref_names.cc",
"pref_names.h",
"switches.cc",
@@ -13,5 +22,37 @@ source_set("ntp_tiles") {
public_deps = [
"//base",
+ "//components/history/core/browser",
+ "//components/suggestions",
]
+ deps = [
+ "//components/google/core/browser",
+ "//components/pref_registry",
+ "//components/prefs",
+ "//components/safe_json",
+ "//components/search_engines",
+ "//components/variations",
+ "//components/variations/service",
+ "//content/public/browser",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "most_visited_sites_unittest.cc",
+ ]
+
+ deps = [
+ ":ntp_tiles",
+ "//testing/gtest",
+ ]
+}
+
+if (is_android) {
+ java_cpp_enum("most_visited_sites_enums_java") {
+ sources = [
+ "most_visited_sites.cc",
+ ]
+ }
}

Powered by Google App Engine
This is Rietveld 408576698