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

Issue 1987333003: [NTP Snippets] Persist snippets in a LevelDB instead of prefs (Closed)

Created:
4 years, 7 months ago by Marc Treib
Modified:
4 years, 6 months ago
CC:
blundell+watchlist_chromium.org, chromium-reviews, dgn+watch_chromium.org, droger+watchlist_chromium.org, mcwilliams+watch_chromium.org, mvanouwerkerk+watch_chromium.org, sdefresne+watchlist_chromium.org, sdefresne+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Snippets] Persist snippets in a LevelDB instead of prefs BUG=605870 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/4db94acd2c51b5c67cc00175b5a0dad4f865eb03 Cr-Commit-Position: refs/heads/master@{#397367}

Patch Set 1 #

Patch Set 2 : fix gyp #

Patch Set 3 : rebase #

Patch Set 4 : tests #

Patch Set 5 : . #

Total comments: 39

Patch Set 6 : rebase #

Patch Set 7 : review #

Total comments: 2

Patch Set 8 : review2 #

Patch Set 9 : prefs cleanup; fix internals #

Total comments: 5

Patch Set 10 : common kDatabaseFolder #

Patch Set 11 : rebase #

Patch Set 12 : fix test memleaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+874 lines, -220 lines) Patch
M chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/resources/snippets_internals.js View 1 2 3 4 5 6 7 8 6 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.h View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 2 3 4 5 6 7 8 4 chunks +0 lines, -26 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets.gypi View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M components/ntp_snippets/BUILD.gn View 1 2 3 4 5 chunks +6 lines, -0 lines 0 comments Download
M components/ntp_snippets/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippet.h View 1 2 3 4 chunks +21 lines, -4 lines 0 comments Download
M components/ntp_snippets/ntp_snippet.cc View 1 2 3 4 5 7 chunks +91 lines, -52 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_constants.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_constants.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
A components/ntp_snippets/ntp_snippets_database.h View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A components/ntp_snippets/ntp_snippets_database.cc View 1 2 3 4 5 6 1 chunk +158 lines, -0 lines 0 comments Download
A components/ntp_snippets/ntp_snippets_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +213 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 6 7 8 8 chunks +34 lines, -22 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 7 8 9 10 16 chunks +136 lines, -89 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +49 lines, -2 lines 0 comments Download
M components/ntp_snippets/pref_names.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M components/ntp_snippets/pref_names.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
A + components/ntp_snippets/proto/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A components/ntp_snippets/proto/ntp_snippets.proto View 1 chunk +27 lines, -0 lines 0 comments Download
M ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -8 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (13 generated)
Marc Treib
PTAL! (not urgent; feel free to delay this until all the deadline-relevant stuff is done!) ...
4 years, 7 months ago (2016-05-23 14:00:58 UTC) #2
Marc Treib
https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets/ntp_snippets_service.cc#newcode222 components/ntp_snippets/ntp_snippets_service.cc:222: registry->RegisterListPref(prefs::kDiscardedSnippets); Ah, one thing I forgot to mention: These ...
4 years, 7 months ago (2016-05-25 09:49:50 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets.gypi File components/ntp_snippets.gypi (right): https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets.gypi#newcode52 components/ntp_snippets.gypi:52: 'includes': [ '../build/protoc.gypi' ], This just goes into the ...
4 years, 7 months ago (2016-05-25 15:01:15 UTC) #4
Marc Treib
https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets.gypi File components/ntp_snippets.gypi (right): https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets.gypi#newcode52 components/ntp_snippets.gypi:52: 'includes': [ '../build/protoc.gypi' ], On 2016/05/25 15:01:15, Bernhard Bauer ...
4 years, 6 months ago (2016-05-27 14:03:13 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets.gypi File components/ntp_snippets.gypi (right): https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets.gypi#newcode52 components/ntp_snippets.gypi:52: 'includes': [ '../build/protoc.gypi' ], On 2016/05/27 14:03:12, Marc Treib ...
4 years, 6 months ago (2016-05-27 16:06:43 UTC) #6
Marc Treib
https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets.gypi File components/ntp_snippets.gypi (right): https://codereview.chromium.org/1987333003/diff/80001/components/ntp_snippets.gypi#newcode52 components/ntp_snippets.gypi:52: 'includes': [ '../build/protoc.gypi' ], On 2016/05/27 16:06:42, Bernhard Bauer ...
4 years, 6 months ago (2016-05-30 13:22:00 UTC) #7
Marc Treib
https://codereview.chromium.org/1987333003/diff/160001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (left): https://codereview.chromium.org/1987333003/diff/160001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#oldcode134 chrome/browser/ui/webui/snippets_internals_message_handler.cc:134: *pref_service->GetList(ntp_snippets::prefs::kSnippets), &json); This is a bit unfortunate: We can't ...
4 years, 6 months ago (2016-05-30 14:53:26 UTC) #9
Bernhard Bauer
lgtm https://codereview.chromium.org/1987333003/diff/160001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (left): https://codereview.chromium.org/1987333003/diff/160001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#oldcode134 chrome/browser/ui/webui/snippets_internals_message_handler.cc:134: *pref_service->GetList(ntp_snippets::prefs::kSnippets), &json); On 2016/05/30 14:53:26, Marc Treib wrote: ...
4 years, 6 months ago (2016-05-31 08:20:59 UTC) #10
Marc Treib
https://codereview.chromium.org/1987333003/diff/160001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (left): https://codereview.chromium.org/1987333003/diff/160001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#oldcode134 chrome/browser/ui/webui/snippets_internals_message_handler.cc:134: *pref_service->GetList(ntp_snippets::prefs::kSnippets), &json); On 2016/05/31 08:20:59, Bernhard Bauer wrote: > ...
4 years, 6 months ago (2016-05-31 08:23:44 UTC) #11
Marc Treib
+noyau for ios/ +mathp for new dependency on leveldb_proto PTAL!
4 years, 6 months ago (2016-05-31 08:24:43 UTC) #13
Mathieu
lgtm for dependency
4 years, 6 months ago (2016-05-31 14:14:40 UTC) #14
noyau (Ping after 24h)
https://codereview.chromium.org/1987333003/diff/160001/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc File ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc (right): https://codereview.chromium.org/1987333003/diff/160001/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc#newcode104 ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc:104: browser_state->GetStatePath().Append(FILE_PATH_LITERAL("NTPSnippets"))); Should the string be a constant shared by ...
4 years, 6 months ago (2016-05-31 15:26:59 UTC) #15
Marc Treib
https://codereview.chromium.org/1987333003/diff/160001/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc File ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc (right): https://codereview.chromium.org/1987333003/diff/160001/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc#newcode104 ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc:104: browser_state->GetStatePath().Append(FILE_PATH_LITERAL("NTPSnippets"))); On 2016/05/31 15:26:59, noyau wrote: > Should the ...
4 years, 6 months ago (2016-05-31 16:21:24 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1987333003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1987333003/180001
4 years, 6 months ago (2016-05-31 16:22:01 UTC) #18
noyau (Ping after 24h)
lgtm
4 years, 6 months ago (2016-05-31 16:26:50 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/169680)
4 years, 6 months ago (2016-05-31 17:13:14 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1987333003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1987333003/220001
4 years, 6 months ago (2016-06-01 12:49:35 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/170353)
4 years, 6 months ago (2016-06-01 14:28:33 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1987333003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1987333003/240001
4 years, 6 months ago (2016-06-02 08:15:51 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/223381)
4 years, 6 months ago (2016-06-02 10:23:09 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1987333003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1987333003/240001
4 years, 6 months ago (2016-06-02 10:25:04 UTC) #33
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 6 months ago (2016-06-02 11:32:55 UTC) #34
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 11:34:17 UTC) #36
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/4db94acd2c51b5c67cc00175b5a0dad4f865eb03
Cr-Commit-Position: refs/heads/master@{#397367}

Powered by Google App Engine
This is Rietveld 408576698