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

Issue 1927993002: Allow dumping raw json fetched from the server. (Closed)

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

Description

Allow dumping raw json fetched from the server. On top of dumping the whole list of snippets, this adds the feature to dump the json of the newly fetched snippets. Furthermore, the CL fixes a minor bug discovered while testing the CL: the list of snippets was truncated to max_length before deleting outdated snippets - sometimes resulting in less snippets. BUG=607518 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/eb20b3cc1cd1c5b9eeb1e780764c9120f2c7d48e Cr-Commit-Position: refs/heads/master@{#390905}

Patch Set 1 #

Patch Set 2 : Some fixes #

Total comments: 4

Patch Set 3 : After code review #1 #

Total comments: 1

Patch Set 4 : After code review #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -28 lines) Patch
M chrome/browser/resources/snippets_internals.css View 1 2 3 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/resources/snippets_internals.html View 1 2 3 4 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/resources/snippets_internals.js View 1 2 4 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 2 chunks +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
jkrcal
PTAL
4 years, 7 months ago (2016-04-29 09:31:04 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/1927993002/diff/20001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/1927993002/diff/20001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode75 chrome/browser/ui/webui/snippets_internals_message_handler.cc:75: if (dump_current_fetch_) { If we have the last downloaded ...
4 years, 7 months ago (2016-04-29 12:02:22 UTC) #4
jkrcal
Thanks for the comments. Please take a look again. https://codereview.chromium.org/1927993002/diff/20001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/1927993002/diff/20001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode75 chrome/browser/ui/webui/snippets_internals_message_handler.cc:75: ...
4 years, 7 months ago (2016-04-29 13:11:48 UTC) #5
Bernhard Bauer
lgtm https://codereview.chromium.org/1927993002/diff/40001/chrome/browser/resources/snippets_internals.html File chrome/browser/resources/snippets_internals.html (right): https://codereview.chromium.org/1927993002/diff/40001/chrome/browser/resources/snippets_internals.html#newcode82 chrome/browser/resources/snippets_internals.html:82: <h2>Last json</h2> Nit: JSON in caps
4 years, 7 months ago (2016-04-29 15:10:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927993002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1927993002/60001
4 years, 7 months ago (2016-05-02 08:21:12 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-02 09:14:11 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 09:15:32 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/eb20b3cc1cd1c5b9eeb1e780764c9120f2c7d48e
Cr-Commit-Position: refs/heads/master@{#390905}

Powered by Google App Engine
This is Rietveld 408576698