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

Issue 2145563002: Add ContentSuggestionsService to SnippetsInternals (Closed)

Created:
4 years, 5 months ago by Philipp Keck
Modified:
4 years, 5 months ago
CC:
chromium-reviews, arv+watch_chromium.org, ntp-dev+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@articleprovider2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ContentSuggestionsService to SnippetsInternals The ContentSuggestionsService retrieves suggestions from the NTPSnippetsService as a provider. The latter currently delivers its snippets to the chrome://snippets-internals/ page for debugging. Before the NTP UI will be changed to retrieve suggestions from the ContentSuggestionsService instead of directly from the NTPSnippetsService, this adds the output of the ContentSuggestionsService to the snippets-internals page to allow debugging both and compare the data converted data to the original. This also adds controls for clearing cached/discarded suggestions. BUG=619560 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/f397acb853c3eaf3791e43ecedd22610d954a9d9 Cr-Commit-Position: refs/heads/master@{#405149}

Patch Set 1 #

Total comments: 26

Patch Set 2 : Bernhard's and Marc's comments #

Total comments: 8

Patch Set 3 : Bernhard's comments #

Patch Set 4 : Rebase on 2131943002/#ps260001 #

Patch Set 5 : Changed switch statements #

Patch Set 6 : Rebased with automerge (this should be the same as the previous patch set) #

Patch Set 7 : Refactor NTPSnippetsService::UpdateStateForStatus switch statement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -41 lines) Patch
M chrome/browser/resources/snippets_internals.html View 1 2 3 chunks +60 lines, -3 lines 0 comments Download
M chrome/browser/resources/snippets_internals.js View 1 5 chunks +24 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.h View 3 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 2 3 4 7 chunks +145 lines, -5 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 2 chunks +13 lines, -27 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (6 generated)
Philipp Keck
PTAL
4 years, 5 months ago (2016-07-12 12:33:27 UTC) #3
Marc Treib
A few nits; mostly LG. +jkrcal who wrote most of this, and should know better ...
4 years, 5 months ago (2016-07-12 13:04:53 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/2145563002/diff/1/chrome/browser/resources/snippets_internals.html File chrome/browser/resources/snippets_internals.html (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/resources/snippets_internals.html#newcode171 chrome/browser/resources/snippets_internals.html:171: jsvalues="hidden-id:id"> Nit: don't align HTML attributes; just indent them ...
4 years, 5 months ago (2016-07-12 13:09:45 UTC) #6
Philipp Keck
https://codereview.chromium.org/2145563002/diff/1/chrome/browser/resources/snippets_internals.html File chrome/browser/resources/snippets_internals.html (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/resources/snippets_internals.html#newcode171 chrome/browser/resources/snippets_internals.html:171: jsvalues="hidden-id:id"> On 2016/07/12 13:09:45, Bernhard Bauer wrote: > Nit: ...
4 years, 5 months ago (2016-07-12 13:45:02 UTC) #7
Marc Treib
https://codereview.chromium.org/2145563002/diff/1/chrome/browser/resources/snippets_internals.js File chrome/browser/resources/snippets_internals.js (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/resources/snippets_internals.js#newcode130 chrome/browser/resources/snippets_internals.js:130: link.onclick = function(event) { On 2016/07/12 13:45:02, Philipp Keck ...
4 years, 5 months ago (2016-07-12 13:49:47 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode80 chrome/browser/ui/webui/snippets_internals_message_handler.cc:80: default: On 2016/07/12 13:45:02, Philipp Keck wrote: > On ...
4 years, 5 months ago (2016-07-12 14:44:51 UTC) #9
Philipp Keck
https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode80 chrome/browser/ui/webui/snippets_internals_message_handler.cc:80: default: On 2016/07/12 14:44:51, Bernhard Bauer wrote: > On ...
4 years, 5 months ago (2016-07-12 15:19:56 UTC) #10
Bernhard Bauer
LGTM when it builds. https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode80 chrome/browser/ui/webui/snippets_internals_message_handler.cc:80: default: On 2016/07/12 15:19:56, Philipp ...
4 years, 5 months ago (2016-07-12 15:50:31 UTC) #11
Philipp Keck
https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode80 chrome/browser/ui/webui/snippets_internals_message_handler.cc:80: default: On 2016/07/12 15:50:31, Bernhard Bauer wrote: > On ...
4 years, 5 months ago (2016-07-12 16:05:37 UTC) #12
Bernhard Bauer
https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode80 chrome/browser/ui/webui/snippets_internals_message_handler.cc:80: default: On 2016/07/12 16:05:36, Philipp Keck wrote: > On ...
4 years, 5 months ago (2016-07-12 16:16:27 UTC) #13
Philipp Keck
@treib PTAL again
4 years, 5 months ago (2016-07-13 11:06:53 UTC) #14
jkrcal
Sorry for jumping in so late, LGTM. https://codereview.chromium.org/2145563002/diff/1/chrome/browser/resources/snippets_internals.js File chrome/browser/resources/snippets_internals.js (right): https://codereview.chromium.org/2145563002/diff/1/chrome/browser/resources/snippets_internals.js#newcode130 chrome/browser/resources/snippets_internals.js:130: link.onclick = ...
4 years, 5 months ago (2016-07-13 11:35:23 UTC) #15
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/2145563002/120001
4 years, 5 months ago (2016-07-13 14:13:07 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-13 14:47:58 UTC) #19
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 14:49:32 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f397acb853c3eaf3791e43ecedd22610d954a9d9
Cr-Commit-Position: refs/heads/master@{#405149}

Powered by Google App Engine
This is Rietveld 408576698