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

Side by Side Diff: components/ntp_tiles/BUILD.gn

Issue 2192783002: Parse PopularSites JSON by callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@json
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « components/ntp_tiles.gypi ('k') | components/ntp_tiles/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) { 5 if (is_android) {
8 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
9 } 7 }
10 8
11 # GYP version: components/ntp_tiles.gypi:ntp_tiles 9 # GYP version: components/ntp_tiles.gypi:ntp_tiles
12 static_library("ntp_tiles") { 10 static_library("ntp_tiles") {
13 sources = [ 11 sources = [
14 "constants.cc", 12 "constants.cc",
15 "constants.h", 13 "constants.h",
16 "most_visited_sites.cc", 14 "most_visited_sites.cc",
17 "most_visited_sites.h", 15 "most_visited_sites.h",
18 "popular_sites.cc", 16 "popular_sites.cc",
19 "popular_sites.h", 17 "popular_sites.h",
20 "pref_names.cc", 18 "pref_names.cc",
21 "pref_names.h", 19 "pref_names.h",
22 "switches.cc", 20 "switches.cc",
23 "switches.h", 21 "switches.h",
24 ] 22 ]
25 23
26 public_deps = [ 24 public_deps = [
27 "//base", 25 "//base",
28 "//components/history/core/browser", 26 "//components/history/core/browser",
29 "//components/suggestions", 27 "//components/suggestions",
30 ] 28 ]
31 deps = [ 29 deps = [
32 "//components/google/core/browser", 30 "//components/google/core/browser",
33 "//components/pref_registry", 31 "//components/pref_registry",
34 "//components/prefs", 32 "//components/prefs",
35 "//components/safe_json",
36 "//components/search_engines", 33 "//components/search_engines",
37 "//components/variations", 34 "//components/variations",
38 "//components/variations/service", 35 "//components/variations/service",
39 ] 36 ]
40 37
41 if (is_android) { 38 if (is_android) {
42 deps += [ "android:ntp_tiles_jni_headers" ] 39 deps += [ "android:ntp_tiles_jni_headers" ]
43 } 40 }
44 } 41 }
45 42
46 source_set("unit_tests") { 43 source_set("unit_tests") {
47 testonly = true 44 testonly = true
48 sources = [ 45 sources = [
49 "most_visited_sites_unittest.cc", 46 "most_visited_sites_unittest.cc",
50 ] 47 ]
51 48
52 deps = [ 49 deps = [
53 ":ntp_tiles", 50 ":ntp_tiles",
54 "//testing/gtest", 51 "//testing/gtest",
55 ] 52 ]
56 } 53 }
57 54
58 if (is_android) { 55 if (is_android) {
59 java_cpp_enum("ntp_tiles_enums_java") { 56 java_cpp_enum("ntp_tiles_enums_java") {
60 sources = [ 57 sources = [
61 "most_visited_sites.h", 58 "most_visited_sites.h",
62 ] 59 ]
63 } 60 }
64 } 61 }
OLDNEW
« no previous file with comments | « components/ntp_tiles.gypi ('k') | components/ntp_tiles/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698