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

Issue 2292003002: Move OnURLsDeleted from NTPSnippetsService to ContentSuggestionsService (Closed)

Created:
4 years, 3 months ago by vitaliii
Modified:
4 years, 3 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move OnURLsDeleted from NTPSnippetsService to ContentSuggestionsService This CL makes ContentSuggestionsService an observer of HistoryService, so that all providers can be notified about deleted URLs. The call is redirected to ClearHistory(). NTPSnippetsService's HistoryService observer code is replaced with the notification above. BUG=643608 Committed: https://crrev.com/45941154e2a8e0766210a65d2c12bf40a2c95d9a Cr-Commit-Position: refs/heads/master@{#416518}

Patch Set 1 #

Total comments: 8

Patch Set 2 #

Total comments: 15

Patch Set 3 : Marc's comments. #

Total comments: 10

Patch Set 4 : Marc's comments. #

Total comments: 4

Patch Set 5 : Marc's nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -65 lines) Patch
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 5 chunks +7 lines, -8 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 5 chunks +21 lines, -2 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 3 4 3 chunks +55 lines, -2 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 5 chunks +1 line, -18 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 4 chunks +0 lines, -28 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
vitaliii
Hi Marc, Would you mind checking the interface before I edit all the providers? https://codereview.chromium.org/2292003002/diff/1/components/ntp_snippets/content_suggestions_provider.h ...
4 years, 3 months ago (2016-08-30 08:57:31 UTC) #2
Marc Treib
https://codereview.chromium.org/2292003002/diff/1/components/ntp_snippets/content_suggestions_provider.h File components/ntp_snippets/content_suggestions_provider.h (right): https://codereview.chromium.org/2292003002/diff/1/components/ntp_snippets/content_suggestions_provider.h#newcode105 components/ntp_snippets/content_suggestions_provider.h:105: // Removes given list of URLs and associated data ...
4 years, 3 months ago (2016-08-30 09:42:32 UTC) #3
vitaliii
Hi Marc, your attention is required. https://codereview.chromium.org/2292003002/diff/1/components/ntp_snippets/content_suggestions_provider.h File components/ntp_snippets/content_suggestions_provider.h (right): https://codereview.chromium.org/2292003002/diff/1/components/ntp_snippets/content_suggestions_provider.h#newcode105 components/ntp_snippets/content_suggestions_provider.h:105: // Removes given ...
4 years, 3 months ago (2016-09-02 12:38:30 UTC) #7
Marc Treib
https://codereview.chromium.org/2292003002/diff/40001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (left): https://codereview.chromium.org/2292003002/diff/40001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#oldcode129 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:129: HistoryService* history_service, You'll have to do the same change ...
4 years, 3 months ago (2016-09-02 12:57:10 UTC) #8
vitaliii
Hey Marc, Please have a look at my fix. https://codereview.chromium.org/2292003002/diff/40001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (left): https://codereview.chromium.org/2292003002/diff/40001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#oldcode129 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:129: ...
4 years, 3 months ago (2016-09-02 14:13:17 UTC) #10
Marc Treib
https://codereview.chromium.org/2292003002/diff/40001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (left): https://codereview.chromium.org/2292003002/diff/40001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#oldcode129 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:129: HistoryService* history_service, On 2016/09/02 14:13:16, vitaliii wrote: > On ...
4 years, 3 months ago (2016-09-02 14:45:19 UTC) #11
vitaliii
Hi Marc, please have a look. https://codereview.chromium.org/2292003002/diff/40001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (left): https://codereview.chromium.org/2292003002/diff/40001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#oldcode129 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:129: HistoryService* history_service, On ...
4 years, 3 months ago (2016-09-02 16:40:06 UTC) #12
Marc Treib
LGTM with some more nits https://codereview.chromium.org/2292003002/diff/60001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2292003002/diff/60001/components/ntp_snippets/content_suggestions_service.cc#newcode257 components/ntp_snippets/content_suggestions_service.cc:257: return set.count(url) != 0 ...
4 years, 3 months ago (2016-09-02 16:50:35 UTC) #13
vitaliii
Just a fix, no need to look. https://codereview.chromium.org/2292003002/diff/60001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2292003002/diff/60001/components/ntp_snippets/content_suggestions_service.cc#newcode257 components/ntp_snippets/content_suggestions_service.cc:257: return set.count(url) ...
4 years, 3 months ago (2016-09-02 17:14:10 UTC) #14
vitaliii
Hi Eric, We needed to react to OnURLsDeleted in BookmarkSuggestionsProvider, so we moved it to ...
4 years, 3 months ago (2016-09-05 07:19:33 UTC) #16
noyau (Ping after 24h)
lgtm On Monday, 5 September 2016, <vitaliii@chromium.org> wrote: > Hi Eric, > > We needed ...
4 years, 3 months ago (2016-09-05 07:30:03 UTC) #17
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/2292003002/100001
4 years, 3 months ago (2016-09-05 07:49:34 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/252990)
4 years, 3 months ago (2016-09-05 07:55:24 UTC) #22
noyau (Ping after 24h)
lgtm
4 years, 3 months ago (2016-09-05 08:54:18 UTC) #24
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/2292003002/100001
4 years, 3 months ago (2016-09-05 08:54:31 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 3 months ago (2016-09-05 08:58:31 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 09:00:09 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/45941154e2a8e0766210a65d2c12bf40a2c95d9a
Cr-Commit-Position: refs/heads/master@{#416518}

Powered by Google App Engine
This is Rietveld 408576698