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

Unified Diff: components/ntp_snippets/BUILD.gn

Issue 1987333003: [NTP Snippets] Persist snippets in a LevelDB instead of prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test memleaks 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
« no previous file with comments | « components/ntp_snippets.gypi ('k') | components/ntp_snippets/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/BUILD.gn
diff --git a/components/ntp_snippets/BUILD.gn b/components/ntp_snippets/BUILD.gn
index 456c0ca02589968afb409e12e578ef6faec8d038..88f88dbdeb579879448b75e89506de1b941f7ccc 100644
--- a/components/ntp_snippets/BUILD.gn
+++ b/components/ntp_snippets/BUILD.gn
@@ -9,6 +9,8 @@ source_set("ntp_snippets") {
"ntp_snippet.h",
"ntp_snippets_constants.cc",
"ntp_snippets_constants.h",
+ "ntp_snippets_database.cc",
+ "ntp_snippets_database.h",
"ntp_snippets_fetcher.cc",
"ntp_snippets_fetcher.h",
"ntp_snippets_scheduler.h",
@@ -23,6 +25,7 @@ source_set("ntp_snippets") {
public_deps = [
"//base",
"//components/keyed_service/core",
+ "//components/leveldb_proto",
"//components/prefs",
"//components/signin/core/browser",
"//components/suggestions",
@@ -36,6 +39,7 @@ source_set("ntp_snippets") {
"//components/data_use_measurement/core",
"//components/image_fetcher",
"//components/metrics",
+ "//components/ntp_snippets/proto",
"//components/variations",
"//third_party/icu/",
"//ui/gfx",
@@ -45,6 +49,7 @@ source_set("ntp_snippets") {
source_set("unit_tests") {
testonly = true
sources = [
+ "ntp_snippets_database_unittest.cc",
"ntp_snippets_fetcher_unittest.cc",
"ntp_snippets_service_unittest.cc",
]
@@ -54,6 +59,7 @@ source_set("unit_tests") {
"//base",
"//base/test:test_support",
"//components/image_fetcher",
+ "//components/leveldb_proto:test_support",
"//components/signin/core/browser:test_support",
"//components/sync_driver:test_support",
"//net:test_support",
« no previous file with comments | « components/ntp_snippets.gypi ('k') | components/ntp_snippets/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698