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

Issue 1883523002: chrome://snippets-internals page for debugging NTP snippets. (Closed)

Created:
4 years, 8 months ago by jkrcal
Modified:
4 years, 8 months ago
CC:
chromium-reviews, mcwilliams+watch_chromium.org, arv+watch_chromium.org, dgn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chrome://snippets-internals page for debugging NTP snippets. Displays a list of NTP snippets and discarded snippets with all details (as obtained from the ChromeReader servers). It also shows the list of hosts by the SuggestionService to which the snippets are restricted. The page allows to clear the list of snippets / discarded snippets as well as to fetch new snippets from user-specified hosts. BUG=597566 NOPRESUBMIT=true (the presubmit check fails on javascript arrow function, see https://bugs.chromium.org/p/chromium/issues/detail?id=567770#c8) Committed: https://crrev.com/3ccb46d44ee5a1a3a5cee851792fb01b8ef56749 Cr-Commit-Position: refs/heads/master@{#387919}

Patch Set 1 #

Patch Set 2 : A few code fixes #

Patch Set 3 : Rebase-update #

Patch Set 4 : Removing unintentionally added files #

Patch Set 5 : Unit tests #

Total comments: 54

Patch Set 6 : Code review #

Patch Set 7 : Adding the chrome://snippets-internals page in the auto-suggest list. #

Total comments: 48

Patch Set 8 : Second code review #

Total comments: 12

Patch Set 9 : Third code review ( rebase-update) #

Total comments: 12

Patch Set 10 : Fourth code review #

Total comments: 6

Patch Set 11 : Implementing last suggestions by Marc #

Patch Set 12 : Implementing last suggestions from Bernhard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+730 lines, -19 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/resources/snippets_internals.css View 1 2 3 4 5 6 7 8 9 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/resources/snippets_internals.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +127 lines, -0 lines 0 comments Download
A chrome/browser/resources/snippets_internals.js View 1 2 3 4 5 6 7 8 9 1 chunk +94 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/snippets_internals_message_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +208 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/snippets_internals_ui.h View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/snippets_internals_ui.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 7 8 9 6 chunks +39 lines, -17 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883523002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883523002/20001
4 years, 8 months ago (2016-04-12 11:17:11 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/158060)
4 years, 8 months ago (2016-04-12 11:19:10 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883523002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883523002/40001
4 years, 8 months ago (2016-04-12 13:20:07 UTC) #6
jkrcal
Hi Marc, could you make the first round of critique?
4 years, 8 months ago (2016-04-12 16:07:37 UTC) #8
Marc Treib
Very nice! A bunch of comments below, but they're all fairly minor. https://codereview.chromium.org/1883523002/diff/80001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd ...
4 years, 8 months ago (2016-04-13 08:45:52 UTC) #9
jkrcal
Marc, could you please look again? bauerb@chromium.org: PTAL https://codereview.chromium.org/1883523002/diff/80001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1883523002/diff/80001/chrome/browser/browser_resources.grd#newcode168 chrome/browser/browser_resources.grd:168: <if ...
4 years, 8 months ago (2016-04-14 15:27:01 UTC) #11
Marc Treib
https://codereview.chromium.org/1883523002/diff/80001/chrome/browser/resources/snippets_internals.html File chrome/browser/resources/snippets_internals.html (right): https://codereview.chromium.org/1883523002/diff/80001/chrome/browser/resources/snippets_internals.html#newcode48 chrome/browser/resources/snippets_internals.html:48: <td>Validity On 2016/04/14 15:26:59, jkrcal wrote: > On 2016/04/13 ...
4 years, 8 months ago (2016-04-14 15:43:44 UTC) #12
jkrcal
Updated based on Marc's comments. (I am sorry for missing the 2015s!) https://codereview.chromium.org/1883523002/diff/120001/chrome/browser/resources/snippets_internals.css File chrome/browser/resources/snippets_internals.css ...
4 years, 8 months ago (2016-04-14 16:41:01 UTC) #13
Bernhard Bauer
Generally, it's a good idea not to add multiple reviewers for the same areas of ...
4 years, 8 months ago (2016-04-14 16:50:25 UTC) #15
Marc Treib
https://codereview.chromium.org/1883523002/diff/80001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1883523002/diff/80001/chrome/browser/browser_resources.grd#newcode168 chrome/browser/browser_resources.grd:168: <if expr="is_android"> On 2016/04/14 16:50:24, Bernhard Bauer wrote: > ...
4 years, 8 months ago (2016-04-14 17:03:45 UTC) #16
jkrcal
I see Bernhard is OOO. Marc could you take a (hopefully) final look in the ...
4 years, 8 months ago (2016-04-15 08:39:54 UTC) #17
Marc Treib
Mostly looks good now, thanks! You haven't addressed all of Bernhard's comments yet. You seem ...
4 years, 8 months ago (2016-04-15 09:00:30 UTC) #18
jkrcal
I am sorry for missing some of the comments from Bernhard! (I checked only the ...
4 years, 8 months ago (2016-04-15 14:11:51 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883523002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883523002/180001
4 years, 8 months ago (2016-04-15 14:12:35 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-15 14:51:54 UTC) #23
Marc Treib
Thanks, LGTM! Alright, the NOPRESUBMIT is okay in that case, but please add a short ...
4 years, 8 months ago (2016-04-15 15:51:33 UTC) #24
jkrcal
Thanks, Marc, for the comments. I still hope for your lgtm, Bernhard! :) https://codereview.chromium.org/1883523002/diff/140001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File ...
4 years, 8 months ago (2016-04-18 12:22:54 UTC) #26
Bernhard Bauer
Sorry, just some small things left: https://codereview.chromium.org/1883523002/diff/120001/chrome/browser/resources/snippets_internals.html File chrome/browser/resources/snippets_internals.html (right): https://codereview.chromium.org/1883523002/diff/120001/chrome/browser/resources/snippets_internals.html#newcode25 chrome/browser/resources/snippets_internals.html:25: <div class="section" jsskip="true"> ...
4 years, 8 months ago (2016-04-18 14:01:34 UTC) #27
jkrcal
Thanks, Bernhard, for the comments. Do you see anything more to fix? https://codereview.chromium.org/1883523002/diff/120001/chrome/browser/resources/snippets_internals.html File chrome/browser/resources/snippets_internals.html ...
4 years, 8 months ago (2016-04-18 15:02:06 UTC) #28
Bernhard Bauer
LGTM, thanks!
4 years, 8 months ago (2016-04-18 15:11:45 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883523002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883523002/220001
4 years, 8 months ago (2016-04-18 15:17:00 UTC) #32
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 8 months ago (2016-04-18 15:59:16 UTC) #34
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 16:00:35 UTC) #36
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3ccb46d44ee5a1a3a5cee851792fb01b8ef56749
Cr-Commit-Position: refs/heads/master@{#387919}

Powered by Google App Engine
This is Rietveld 408576698