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

Side by Side Diff: components/reading_list/core/BUILD.gn

Issue 2763233003: Move ReadingList model to components/reading_list/core (Closed)
Patch Set: feedback Created 3 years, 9 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/browser_sync/BUILD.gn ('k') | components/reading_list/core/offline_url_utils.h » ('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 import("//build/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//components/reading_list/core/reading_list.gni") 6 import("//components/reading_list/core/reading_list.gni")
7 7
8 source_set("core") { 8 source_set("core") {
9 sources = [ 9 sources = [
10 "offline_url_utils.cc",
11 "offline_url_utils.h",
12 "reading_list_entry.cc",
13 "reading_list_entry.h",
14 "reading_list_model.cc",
15 "reading_list_model.h",
16 "reading_list_model_impl.cc",
17 "reading_list_model_impl.h",
18 "reading_list_model_observer.h",
19 "reading_list_model_storage.cc",
20 "reading_list_model_storage.h",
21 "reading_list_pref_names.cc",
22 "reading_list_pref_names.h",
23 "reading_list_store.cc",
24 "reading_list_store.h",
25 "reading_list_store_delegate.h",
26 ]
27 deps = [
28 ":flags",
29 "//base",
30 "//components/keyed_service/core",
31 "//components/prefs",
32 "//components/sync",
33 "//net",
34 "//url",
35 ]
36 public_deps = [
37 "//components/reading_list/core/proto",
38 ]
39 }
40
41 source_set("unit_tests") {
42 testonly = true
43 sources = [
44 "offline_url_utils_unittest.cc",
45 "reading_list_entry_unittest.cc",
46 "reading_list_model_unittest.cc",
47 "reading_list_store_unittest.cc",
48 ]
49 deps = [
50 ":core",
51 "//base",
52 "//base/test:test_support",
53 "//components/sync",
54 "//components/sync:test_support_model",
55 "//testing/gtest",
56 "//url",
57 ]
58 }
59
60 source_set("flags") {
61 sources = [
10 "reading_list_switches.cc", 62 "reading_list_switches.cc",
11 "reading_list_switches.h", 63 "reading_list_switches.h",
12 ] 64 ]
13 deps = [ 65 deps = [
66 "//base",
67 ]
68 public_deps = [
14 ":reading_list_enable_flags", 69 ":reading_list_enable_flags",
15 "//base",
16 ] 70 ]
17 } 71 }
18 72
19 buildflag_header("reading_list_enable_flags") { 73 buildflag_header("reading_list_enable_flags") {
20 header = "reading_list_enable_flags.h" 74 header = "reading_list_enable_flags.h"
21 _enabled = is_ios && enable_reading_list 75 _enabled = is_ios && enable_reading_list
22 flags = [ "ENABLE_READING_LIST=$_enabled" ] 76 flags = [ "ENABLE_READING_LIST=$_enabled" ]
23 } 77 }
OLDNEW
« no previous file with comments | « components/browser_sync/BUILD.gn ('k') | components/reading_list/core/offline_url_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698