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

Issue 2255783002: Support server categories in NTPSnippetsService. (Closed)

Created:
4 years, 4 months ago by sfiera
Modified:
4 years, 3 months ago
Reviewers:
Marc Treib, tschumann
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support server categories in NTPSnippetsService. BUG=633613 Committed: https://crrev.com/330958ddcdcd0084d724571eddaa66f9c364115f Cr-Commit-Position: refs/heads/master@{#414443}

Patch Set 1 #

Patch Set 2 : sync #

Total comments: 39

Patch Set 3 : Address review comments. #

Patch Set 4 : Empty category handling. #

Total comments: 28

Patch Set 5 : Use snippet ID only for database images. #

Patch Set 6 : Address review comments. #

Patch Set 7 : Rebase. #

Total comments: 3

Patch Set 8 : Move TODO. #

Total comments: 2

Patch Set 9 : Fix suggestion_id. #

Patch Set 10 : rebase #

Patch Set 11 : Add out-of-line *structors. #

Patch Set 12 : *structors, rebase #

Patch Set 13 : Fix after rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -249 lines) Patch
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +36 lines, -20 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 21 chunks +327 lines, -157 lines 1 comment Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 4 5 6 21 chunks +74 lines, -72 lines 0 comments Download

Messages

Total messages: 40 (20 generated)
sfiera
This is as yet untested. The server-side support for the debug category is still broken, ...
4 years, 4 months ago (2016-08-22 14:04:13 UTC) #2
Marc Treib
Not happy about the snippet_id vs. suggestion_id mixing, but I think we can avoid that, ...
4 years, 4 months ago (2016-08-22 15:06:47 UTC) #3
tschumann
sorry for the lame question, but why are we dealing with 2 type of ids? ...
4 years, 4 months ago (2016-08-22 16:00:23 UTC) #4
Marc Treib
The "snippet_id vs suggestion_id" thing is a consequence of us baking the category into the ...
4 years, 4 months ago (2016-08-22 16:04:01 UTC) #5
sfiera
https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h File components/ntp_snippets/ntp_snippets_database.h (right): https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h#newcode66 components/ntp_snippets/ntp_snippets_database.h:66: void LoadImage(const std::string& suggestion_id, On 2016/08/22 15:06:46, Marc Treib ...
4 years, 4 months ago (2016-08-24 14:35:57 UTC) #6
Marc Treib
https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h File components/ntp_snippets/ntp_snippets_database.h (right): https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h#newcode66 components/ntp_snippets/ntp_snippets_database.h:66: void LoadImage(const std::string& suggestion_id, On 2016/08/24 14:35:56, sfiera wrote: ...
4 years, 4 months ago (2016-08-24 15:22:09 UTC) #11
tschumann
https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h File components/ntp_snippets/ntp_snippets_database.h (right): https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h#newcode66 components/ntp_snippets/ntp_snippets_database.h:66: void LoadImage(const std::string& suggestion_id, On 2016/08/24 15:22:08, Marc Treib ...
4 years, 4 months ago (2016-08-24 15:33:08 UTC) #13
Marc Treib
https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h File components/ntp_snippets/ntp_snippets_database.h (right): https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h#newcode66 components/ntp_snippets/ntp_snippets_database.h:66: void LoadImage(const std::string& suggestion_id, On 2016/08/24 15:33:08, tschumann wrote: ...
4 years, 4 months ago (2016-08-24 15:38:54 UTC) #14
sfiera
https://codereview.chromium.org/2255783002/diff/60001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2255783002/diff/60001/components/ntp_snippets/ntp_snippets_service.cc#newcode552 components/ntp_snippets/ntp_snippets_service.cc:552: // source and report the category as AVAILABLE. On ...
4 years, 4 months ago (2016-08-24 18:56:45 UTC) #15
Marc Treib
Renaming suggestion_id back to snippet_id in the appropriate places is still open, otherwise LG https://codereview.chromium.org/2255783002/diff/60001/components/ntp_snippets/ntp_snippets_service.cc ...
4 years, 4 months ago (2016-08-25 09:10:50 UTC) #20
sfiera
https://codereview.chromium.org/2255783002/diff/60001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2255783002/diff/60001/components/ntp_snippets/ntp_snippets_service.cc#newcode1033 components/ntp_snippets/ntp_snippets_service.cc:1033: // observer in that case. On 2016/08/25 09:10:50, Marc ...
4 years, 3 months ago (2016-08-25 12:45:13 UTC) #21
Marc Treib
lgtm https://codereview.chromium.org/2255783002/diff/120001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/2255783002/diff/120001/components/ntp_snippets/ntp_snippets_service.h#newcode242 components/ntp_snippets/ntp_snippets_service.h:242: const std::string& suggestion_id, On 2016/08/25 12:45:13, sfiera wrote: ...
4 years, 3 months ago (2016-08-25 12:56:24 UTC) #22
sfiera
https://codereview.chromium.org/2255783002/diff/140001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/2255783002/diff/140001/components/ntp_snippets/ntp_snippets_service.h#newcode253 components/ntp_snippets/ntp_snippets_service.h:253: const std::string& snippet_id, On 2016/08/25 12:56:24, Marc Treib wrote: ...
4 years, 3 months ago (2016-08-25 13:35:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255783002/180001
4 years, 3 months ago (2016-08-25 13:36:25 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/58369)
4 years, 3 months ago (2016-08-25 13:47:07 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2255783002/240001
4 years, 3 months ago (2016-08-25 14:36:59 UTC) #35
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 3 months ago (2016-08-25 15:40:14 UTC) #36
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/330958ddcdcd0084d724571eddaa66f9c364115f Cr-Commit-Position: refs/heads/master@{#414443}
4 years, 3 months ago (2016-08-25 15:42:10 UTC) #38
tschumann
https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h File components/ntp_snippets/ntp_snippets_database.h (right): https://codereview.chromium.org/2255783002/diff/20001/components/ntp_snippets/ntp_snippets_database.h#newcode66 components/ntp_snippets/ntp_snippets_database.h:66: void LoadImage(const std::string& suggestion_id, On 2016/08/24 15:38:54, Marc Treib ...
4 years, 3 months ago (2016-08-25 16:15:21 UTC) #39
johnme
4 years, 3 months ago (2016-08-25 16:38:47 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:240001) has been created in
https://codereview.chromium.org/2277323003/ by johnme@chromium.org.

The reason for reverting is: Following tests failing:
NTPSnippetsServiceTest.GetDismissed
NTPSnippetsServiceTest.LogNumArticlesHistogram
NTPSnippetsServiceTest.DismissShouldRespectAllKnownUrls
NTPSnippetsServiceTest.ImageReturnedWithTheSameId
NTPSnippetsServiceTest.Dismiss

on bots:
https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests/builds/45385
https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests/builds/27331
https://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%2....

Powered by Google App Engine
This is Rietveld 408576698