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

Issue 2222853004: Add per-section clearing and dismissed suggestions to snippets-internals (Closed)

Created:
4 years, 4 months ago by Philipp Keck
Modified:
4 years, 4 months ago
CC:
chromium-reviews, arv+watch_chromium.org, 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

Add per-section clearing and dismissed suggestions to snippets-internals Add new ClearCachedSuggestionsForDebugging, GetDismissedSuggestionsForDebugging and ClearDismissedSuggestionsForDebugging methods to the ContentSuggestionsProvider. Implement these methods in all existing providers. Adjust the unit tests. Call those methods from snippets-internals, build new internals UI for viewing dismissed suggestions and clearing suggestions per category. Remove now unused NTPSnippetsService-related things. BUG=619560 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/17361590f84745a69e0373e6482184e3bada6c3b Cr-Commit-Position: refs/heads/master@{#410360}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Order methods correctly in snippets_internals_message_handler.cc #

Patch Set 3 : Marc's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -388 lines) Patch
M chrome/browser/resources/snippets_internals.html View 6 chunks +58 lines, -99 lines 0 comments Download
M chrome/browser/resources/snippets_internals.js View 7 chunks +29 lines, -38 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 8 chunks +46 lines, -104 lines 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h View 1 chunk +4 lines, -2 lines 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc View 2 chunks +16 lines, -3 lines 0 comments Download
M components/ntp_snippets/content_suggestions_provider.h View 1 2 1 chunk +15 lines, -7 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 chunk +22 lines, -8 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 1 chunk +29 lines, -6 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 3 chunks +9 lines, -13 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 4 chunks +62 lines, -37 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 24 chunks +68 lines, -61 lines 0 comments Download
M components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h View 1 chunk +4 lines, -2 lines 0 comments Download
M components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc View 2 chunks +15 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (5 generated)
Philipp Keck
PTAL
4 years, 4 months ago (2016-08-08 12:35:30 UTC) #3
Bernhard Bauer
lgtm
4 years, 4 months ago (2016-08-08 13:27:02 UTC) #4
Philipp Keck
On 2016/08/08 13:27:02, Bernhard Bauer wrote: > lgtm Thank you for reviewing. I reordered the ...
4 years, 4 months ago (2016-08-08 13:36:46 UTC) #5
Marc Treib
https://codereview.chromium.org/2222853004/diff/1/components/ntp_snippets/content_suggestions_provider.h File components/ntp_snippets/content_suggestions_provider.h (right): https://codereview.chromium.org/2222853004/diff/1/components/ntp_snippets/content_suggestions_provider.h#newcode98 components/ntp_snippets/content_suggestions_provider.h:98: // |category| nit: messed up line break https://codereview.chromium.org/2222853004/diff/1/components/ntp_snippets/content_suggestions_service.cc File ...
4 years, 4 months ago (2016-08-08 13:52:09 UTC) #6
Philipp Keck
https://codereview.chromium.org/2222853004/diff/1/components/ntp_snippets/content_suggestions_provider.h File components/ntp_snippets/content_suggestions_provider.h (right): https://codereview.chromium.org/2222853004/diff/1/components/ntp_snippets/content_suggestions_provider.h#newcode98 components/ntp_snippets/content_suggestions_provider.h:98: // |category| On 2016/08/08 13:52:09, Marc Treib wrote: > ...
4 years, 4 months ago (2016-08-08 14:15:09 UTC) #7
Marc Treib
Ah, also LGTM. Meant to say that before but forgot
4 years, 4 months ago (2016-08-08 14:16:17 UTC) #8
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/2222853004/40001
4 years, 4 months ago (2016-08-08 14:21:06 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-08 15:18:39 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/17361590f84745a69e0373e6482184e3bada6c3b Cr-Commit-Position: refs/heads/master@{#410360}
4 years, 4 months ago (2016-08-08 15:20:56 UTC) #14
jbudorick
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2223963002/ by jbudorick@chromium.org. ...
4 years, 4 months ago (2016-08-08 15:48:27 UTC) #15
anthonyvd
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2225753003/ by anthonyvd@chromium.org. ...
4 years, 4 months ago (2016-08-08 15:48:34 UTC) #16
findit-for-me
4 years, 4 months ago (2016-08-08 15:57:04 UTC) #17
Message was sent while issue was closed.
FYI: Findit try jobs (rerunning failed compile or tests) identified this CL
at revision 410360 as the culprit for failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698