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

Issue 1907233002: Allows to dump current snippets to a json in the Downloads folder. (Closed)

Created:
4 years, 8 months ago by jkrcal
Modified:
4 years, 8 months ago
Reviewers:
Bernhard Bauer
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

Allows to dump current snippets to a json in the Downloads folder. The feature is accessible by a new button on the page chrome://snippets-internals. Also changes a few details in the JS for the internals page (inlining callbacks, geting rid of the arrow function to pass presubmit). Introduces a getter in the service for snippets (the asymmetric access via iterators to be removed in another CL). BUG=604740 Committed: https://crrev.com/5ed0d72d80f4b4687889c83fc7f72dd9591cc659 Cr-Commit-Position: refs/heads/master@{#389466}

Patch Set 1 #

Patch Set 2 : After code review #1 #

Patch Set 3 : Minor cleanup #

Total comments: 6

Patch Set 4 : After code review #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -23 lines) Patch
M chrome/browser/resources/snippets_internals.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/snippets_internals.js View 1 2 3 5 chunks +28 lines, -21 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 2 3 5 chunks +20 lines, -1 line 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (9 generated)
jkrcal
Please take a look at the whole CL.
4 years, 8 months ago (2016-04-22 08:44:39 UTC) #3
Bernhard Bauer
So, browsers already contain a mechanism for downloading files. Why don't you just provide the ...
4 years, 8 months ago (2016-04-22 08:59:44 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/1907233002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907233002/1
4 years, 8 months ago (2016-04-22 09:24:34 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/23500) ios_rel_device_gn on ...
4 years, 8 months ago (2016-04-22 09:26:27 UTC) #8
jkrcal
Thanks for the hint. PTAL now. In the end, it seems that specifying content disposition ...
4 years, 8 months ago (2016-04-25 09:42:17 UTC) #9
jkrcal
On 2016/04/25 09:42:17, jkrcal wrote: > Thanks for the hint. PTAL now. > > In ...
4 years, 8 months ago (2016-04-25 09:43:33 UTC) #10
Bernhard Bauer
https://codereview.chromium.org/1907233002/diff/40001/chrome/browser/resources/snippets_internals.js File chrome/browser/resources/snippets_internals.js (right): https://codereview.chromium.org/1907233002/diff/40001/chrome/browser/resources/snippets_internals.js#newcode53 chrome/browser/resources/snippets_internals.js:53: var link = document.createElement('a'); Add a comment here that ...
4 years, 8 months ago (2016-04-25 10:32:23 UTC) #11
jkrcal
PTAL https://codereview.chromium.org/1907233002/diff/40001/chrome/browser/resources/snippets_internals.js File chrome/browser/resources/snippets_internals.js (right): https://codereview.chromium.org/1907233002/diff/40001/chrome/browser/resources/snippets_internals.js#newcode53 chrome/browser/resources/snippets_internals.js:53: var link = document.createElement('a'); On 2016/04/25 10:32:22, Bernhard ...
4 years, 8 months ago (2016-04-25 12:04:15 UTC) #12
Bernhard Bauer
lgtm
4 years, 8 months ago (2016-04-25 12:26:38 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907233002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907233002/60001
4 years, 8 months ago (2016-04-25 12:29:26 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-25 13:41:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907233002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907233002/60001
4 years, 8 months ago (2016-04-25 13:43:13 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-25 13:47:29 UTC) #21
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 13:48:46 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5ed0d72d80f4b4687889c83fc7f72dd9591cc659
Cr-Commit-Position: refs/heads/master@{#389466}

Powered by Google App Engine
This is Rietveld 408576698