commit | 7c659d2e222c0daf642ff6aa5e378fa6f0102147 | [log] [tgz] |
---|---|---|
author | manuk <manukh@chromium.org> | Tue Jan 08 18:00:28 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 08 18:00:28 2019 |
tree | d6f07f2b1eec734f63ebf205681728699b5f50ed | |
parent | 2ae66973d0f6ea39ac8d8ba84e138a81c30cb6ad [diff] |
[omnibox chrome:omnibox] Export and Import JSON files This CL adds a `Download as JSON` button to download the query inputs, display inputs, and autocomplete responses to a .JSON file named `omnibox_debug_export_<query>_<timestamp>.json`. This replaces the current `Copy as JSON` button. The `Copy as Text` button, which only extracts the visual output and not the entire responses or inputs, remains as is. This CL also adds an `Import JSON` button to import previously exported JSON's. Clicking the button will open a file selector; dragging the .JSON file or a JSON string to the button also works. Selecting or dragging an invalid JSON file or dragging an invalid JSON string results in a console.error message. After successfully importing, a red 'Viewing imported data' warning will be displayed under the import button to signify that the output may not reflect the output the input would currently produce. Bug: 891303 Change-Id: I1a17cda783fa9170baca8841bb80b19a3a67ab82 Reviewed-on: https://chromium-review.googlesource.com/c/1391917 Commit-Queue: manuk hovanesian <manukh@chromium.org> Reviewed-by: Justin Donnelly <jdonnelly@chromium.org> Cr-Commit-Position: refs/heads/master@{#620789}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .