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

Side by Side 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: sync Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 assert(!is_ios) # TODO(sfiera): support iOS http://crbug.com/617966
6
7 if (is_android) {
8 import("//build/config/android/rules.gni")
9 }
10
5 # GYP version: components/ntp_tiles.gypi:ntp_tiles 11 # GYP version: components/ntp_tiles.gypi:ntp_tiles
6 source_set("ntp_tiles") { 12 source_set("ntp_tiles") {
7 sources = [ 13 sources = [
14 "most_visited_sites.cc",
15 "most_visited_sites.h",
16 "popular_sites.cc",
17 "popular_sites.h",
8 "pref_names.cc", 18 "pref_names.cc",
9 "pref_names.h", 19 "pref_names.h",
10 "switches.cc", 20 "switches.cc",
11 "switches.h", 21 "switches.h",
12 ] 22 ]
13 23
14 public_deps = [ 24 public_deps = [
15 "//base", 25 "//base",
26 "//components/history/core/browser",
27 "//components/suggestions",
28 ]
29 deps = [
30 "//components/google/core/browser",
31 "//components/pref_registry",
32 "//components/prefs",
33 "//components/safe_json",
blundell 2016/06/08 11:46:32 nit: you don't need this dependency (or DEPS allow
sfiera 2016/06/08 13:07:06 Still needed on non-iOS (c.f. crrev.com/2041353002
34 "//components/search_engines",
35 "//components/variations",
36 "//components/variations/service",
16 ] 37 ]
17 } 38 }
39
40 source_set("unit_tests") {
41 testonly = true
42 sources = [
43 "most_visited_sites_unittest.cc",
44 ]
45
46 deps = [
47 ":ntp_tiles",
48 "//testing/gtest",
49 ]
50 }
51
52 if (is_android) {
53 java_cpp_enum("ntp_tiles_enums_java") {
54 sources = [
55 "most_visited_sites.cc",
56 ]
57 }
58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698