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

Issue 2034373002: Generate the proto JSON converter for DOM distiller (Closed)

Created:
4 years, 6 months ago by wychen
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generate the proto JSON converter for DOM distiller The protoc_plugins files are from: https://github.com/chromium/dom-distiller/tree/master/protoc_plugins This goes along with https://codereview.chromium.org/2039043003/ Roll DOM Distiller JavaScript distribution package Diff since last roll: https://github.com/chromium/dom-distiller/compare/91f9f016e0...b21e6a334a Picked up changes: b21e6a3 Remove //base dependency BUG=572585 Committed: https://crrev.com/fa35db7c66a96892dc247a1645ef2c26650dd4fa Cr-Commit-Position: refs/heads/master@{#412445}

Patch Set 1 #

Total comments: 18

Patch Set 2 : address nyquist's comments, add tests #

Patch Set 3 : remove import-related code #

Patch Set 4 : rebase #

Patch Set 5 : disable cc and python gen for tests #

Patch Set 6 : better docs and dependency, format #

Total comments: 4

Patch Set 7 : address comments from dpranke #

Patch Set 8 : roll dom distiller #

Patch Set 9 : enable cc and python gen for tests #

Patch Set 10 : Windows-specific fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1302 lines, -8 lines) Patch
M DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/dom_distiller_js/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +57 lines, -5 lines 0 comments Download
M third_party/dom_distiller_js/README.chromium View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A third_party/dom_distiller_js/protoc_plugins/README.md View 1 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/dom_distiller_js/protoc_plugins/json_values_converter.bat View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/dom_distiller_js/protoc_plugins/json_values_converter.py View 1 2 3 4 5 6 7 8 9 1 chunk +268 lines, -0 lines 0 comments Download
A third_party/dom_distiller_js/protoc_plugins/json_values_converter_tests.py View 1 1 chunk +46 lines, -0 lines 0 comments Download
A + third_party/dom_distiller_js/protoc_plugins/util/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/dom_distiller_js/protoc_plugins/util/plugin.py View 1 2 3 4 5 6 7 8 9 1 chunk +50 lines, -0 lines 0 comments Download
A third_party/dom_distiller_js/protoc_plugins/util/plugin_protos.py View 1 2 1 chunk +284 lines, -0 lines 0 comments Download
A third_party/dom_distiller_js/protoc_plugins/util/types.py View 1 1 chunk +150 lines, -0 lines 0 comments Download
A third_party/dom_distiller_js/protoc_plugins/util/writer.py View 1 1 chunk +44 lines, -0 lines 0 comments Download
A third_party/dom_distiller_js/test_sample.proto View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/dom_distiller_js/test_sample_json_converter.h.golden View 1 2 1 chunk +305 lines, -0 lines 0 comments Download
M third_party/protobuf/proto_library.gni View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (25 generated)
wychen
PTAL
4 years, 6 months ago (2016-06-06 18:45:09 UTC) #3
mdjones
lgtm
4 years, 6 months ago (2016-06-13 22:46:13 UTC) #4
nyquist
https://codereview.chromium.org/2034373002/diff/1/third_party/dom_distiller_js/protoc_plugins/README File third_party/dom_distiller_js/protoc_plugins/README (right): https://codereview.chromium.org/2034373002/diff/1/third_party/dom_distiller_js/protoc_plugins/README#newcode1 third_party/dom_distiller_js/protoc_plugins/README:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
4 years, 6 months ago (2016-06-14 00:48:11 UTC) #5
dcheng
Yay! Just some quick thoughts https://codereview.chromium.org/2034373002/diff/1/third_party/protobuf/proto_library.gni File third_party/protobuf/proto_library.gni (right): https://codereview.chromium.org/2034373002/diff/1/third_party/protobuf/proto_library.gni#newcode156 third_party/protobuf/proto_library.gni:156: "--json_converter_out=output_dir=:$rel_out_dir", Seems a bit ...
4 years, 6 months ago (2016-06-14 04:27:39 UTC) #6
wychen
https://codereview.chromium.org/2034373002/diff/1/third_party/dom_distiller_js/protoc_plugins/README File third_party/dom_distiller_js/protoc_plugins/README (right): https://codereview.chromium.org/2034373002/diff/1/third_party/dom_distiller_js/protoc_plugins/README#newcode1 third_party/dom_distiller_js/protoc_plugins/README:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
4 years, 4 months ago (2016-08-07 09:16:27 UTC) #9
wychen
pkasting@, could you take a look at protobuf GN file? Thanks!
4 years, 4 months ago (2016-08-08 19:02:15 UTC) #11
Peter Kasting
On 2016/08/08 19:02:15, wychen wrote: > pkasting@, could you take a look at protobuf GN ...
4 years, 4 months ago (2016-08-08 19:57:38 UTC) #12
nyquist
lgtm https://codereview.chromium.org/2034373002/diff/140001/third_party/dom_distiller_js/BUILD.gn File third_party/dom_distiller_js/BUILD.gn (right): https://codereview.chromium.org/2034373002/diff/140001/third_party/dom_distiller_js/BUILD.gn#newcode22 third_party/dom_distiller_js/BUILD.gn:22: json_converter = "protoc_plugins/json_values_converter.py" Is there any way that ...
4 years, 4 months ago (2016-08-10 01:01:42 UTC) #13
wychen
dpranke@, could you take a look at the GN part? Thank you!
4 years, 4 months ago (2016-08-10 01:08:34 UTC) #15
wychen
https://codereview.chromium.org/2034373002/diff/140001/third_party/dom_distiller_js/BUILD.gn File third_party/dom_distiller_js/BUILD.gn (right): https://codereview.chromium.org/2034373002/diff/140001/third_party/dom_distiller_js/BUILD.gn#newcode22 third_party/dom_distiller_js/BUILD.gn:22: json_converter = "protoc_plugins/json_values_converter.py" On 2016/08/10 01:01:42, nyquist wrote: > ...
4 years, 4 months ago (2016-08-10 01:15:05 UTC) #16
Dirk Pranke
https://codereview.chromium.org/2034373002/diff/140001/third_party/dom_distiller_js/BUILD.gn File third_party/dom_distiller_js/BUILD.gn (right): https://codereview.chromium.org/2034373002/diff/140001/third_party/dom_distiller_js/BUILD.gn#newcode22 third_party/dom_distiller_js/BUILD.gn:22: json_converter = "protoc_plugins/json_values_converter.py" On 2016/08/10 01:15:05, wychen wrote: > ...
4 years, 4 months ago (2016-08-11 00:33:53 UTC) #17
wychen
https://codereview.chromium.org/2034373002/diff/140001/third_party/dom_distiller_js/BUILD.gn File third_party/dom_distiller_js/BUILD.gn (right): https://codereview.chromium.org/2034373002/diff/140001/third_party/dom_distiller_js/BUILD.gn#newcode22 third_party/dom_distiller_js/BUILD.gn:22: json_converter = "protoc_plugins/json_values_converter.py" On 2016/08/11 00:33:53, Dirk Pranke wrote: ...
4 years, 4 months ago (2016-08-11 01:32:19 UTC) #18
Dirk Pranke
On 2016/08/11 01:32:19, wychen wrote: > > Also, I don't see a 'json_converter' variable in ...
4 years, 4 months ago (2016-08-11 01:36:28 UTC) #19
wychen
On 2016/08/11 01:36:28, Dirk Pranke wrote: > On 2016/08/11 01:32:19, wychen wrote: > > > ...
4 years, 4 months ago (2016-08-11 02:09:26 UTC) #20
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/2034373002/240001
4 years, 4 months ago (2016-08-17 03:49:46 UTC) #37
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years, 4 months ago (2016-08-17 03:54:40 UTC) #39
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/fa35db7c66a96892dc247a1645ef2c26650dd4fa Cr-Commit-Position: refs/heads/master@{#412445}
4 years, 4 months ago (2016-08-17 03:57:24 UTC) #41
xyzzyz
4 years, 4 months ago (2016-08-17 23:32:05 UTC) #43
Message was sent while issue was closed.
The json_converter addition in proto_library.gni overlaps the existing mechanism
which is guided by generator_plugin_* options. Please, revert the change to
proto_library.gni, and use the existing functionality, possibly updating it if
it doesn't suit your use case. Also be aware of an ongoing effort to refactor
proto generation: https://codereview.chromium.org/2239383002/ .

Powered by Google App Engine
This is Rietveld 408576698