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

Issue 2567483002: Add proto for TLS error assistant, refactor proto generator code. (Closed)

Created:
4 years ago by meacer
Modified:
4 years ago
Reviewers:
Nathan Parker, Dan Beam
CC:
chromium-reviews, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add proto for TLS error assistant, refactor proto generator code. This CL adds binary_proto_generator.py which contains code to generate binary protobufs from ascii protobufs. SafeBrowsing download file types list and TLS error assistant use this generator to generate their respective binary protos. BUG=640835 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/657c5e7bbb7ea1ae591d97de9adf46a03410a37c Cr-Commit-Position: refs/heads/master@{#439292}

Patch Set 1 #

Total comments: 26

Patch Set 2 : nparker comments #

Total comments: 4

Patch Set 3 : nparker comment #

Patch Set 4 : Add OWNERS for c/b/r/protobufs and c/b/r/ssl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -136 lines) Patch
M chrome/browser/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/protobufs/OWNERS View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/protobufs/binary_proto_generator.py View 1 2 1 chunk +144 lines, -0 lines 0 comments Download
M chrome/browser/resources/safe_browsing/gen_file_type_proto.py View 1 6 chunks +73 lines, -136 lines 0 comments Download
A chrome/browser/resources/ssl/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/ssl/tls_error_assistant/BUILD.gn View 1 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/resources/ssl/tls_error_assistant/gen_tls_error_assistant_proto.py View 1 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/resources/ssl/tls_error_assistant/tls_error_assistant.asciipb View 1 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/ssl/BUILD.gn View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/browser/ssl/tls_error_assistant.proto View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (18 generated)
meacer
Nathan, I refactored proto generation code and split it into binary_proto_generator.py. Can you please take ...
4 years ago (2016-12-09 02:57:09 UTC) #11
Nathan Parker
https://codereview.chromium.org/2567483002/diff/1/chrome/browser/resources/protobufs/binary_proto_generator.py File chrome/browser/resources/protobufs/binary_proto_generator.py (right): https://codereview.chromium.org/2567483002/diff/1/chrome/browser/resources/protobufs/binary_proto_generator.py#newcode33 chrome/browser/resources/protobufs/binary_proto_generator.py:33: print paths I think you'll want to remove any ...
4 years ago (2016-12-10 00:56:50 UTC) #12
meacer
https://codereview.chromium.org/2567483002/diff/1/chrome/browser/resources/protobufs/binary_proto_generator.py File chrome/browser/resources/protobufs/binary_proto_generator.py (right): https://codereview.chromium.org/2567483002/diff/1/chrome/browser/resources/protobufs/binary_proto_generator.py#newcode33 chrome/browser/resources/protobufs/binary_proto_generator.py:33: print paths On 2016/12/10 00:56:50, Nathan Parker wrote: > ...
4 years ago (2016-12-13 02:30:16 UTC) #13
Nathan Parker
lgtm Can you try running the following to ensure it still works? chrome/browser/resources/safe_browsing/push_file_type_proto.py -d out-gn/Debug ...
4 years ago (2016-12-15 00:54:30 UTC) #14
meacer
I ran the command and said Y to the question, and got this: http://go/crrev_2567483002 Looks ...
4 years ago (2016-12-15 18:43:36 UTC) #15
meacer
dbeam: Can you please take a look as owner? Thanks.
4 years ago (2016-12-15 18:45:47 UTC) #17
Nathan Parker
Yup, LGTM.
4 years ago (2016-12-15 18:58:43 UTC) #18
Dan Beam
why are you adding these tools to chrome/browser/resources?
4 years ago (2016-12-15 21:43:55 UTC) #19
meacer
To clarify, there is only one new tool being in this CL. It's added under ...
4 years ago (2016-12-15 21:48:46 UTC) #20
Dan Beam
On 2016/12/15 21:48:46, Mustafa Emre Acer wrote: > To clarify, there is only one new ...
4 years ago (2016-12-16 01:11:10 UTC) #21
meacer
On 2016/12/16 01:11:10, Dan Beam wrote: > On 2016/12/15 21:48:46, Mustafa Emre Acer wrote: > ...
4 years ago (2016-12-16 01:20:58 UTC) #22
Nathan Parker
Moving to tools/ is fine, but these script do create resources under chrome/browser/resources/*. So it ...
4 years ago (2016-12-16 21:22:11 UTC) #23
Dan Beam
On 2016/12/16 21:22:11, Nathan Parker wrote: > Moving to tools/ is fine, but these script ...
4 years ago (2016-12-16 21:36:34 UTC) #24
Nathan Parker
In both the existing download_file_types and this component, it's the binary proto that's stored as ...
4 years ago (2016-12-16 21:45:16 UTC) #25
Dan Beam
if that's the case (and it is a resource loaded by chrome browser), chrome/browser/resources/ is ...
4 years ago (2016-12-16 21:57:22 UTC) #26
meacer
On 2016/12/16 21:57:22, Dan Beam wrote: > if that's the case (and it is a ...
4 years ago (2016-12-16 22:15:10 UTC) #27
Nathan Parker
lgtm
4 years ago (2016-12-16 22:39:36 UTC) #28
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/2567483002/60001
4 years ago (2016-12-16 22:46:14 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: closure_compilation on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-12-17 00:47:42 UTC) #33
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/2567483002/60001
4 years ago (2016-12-17 00:58:33 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-17 02:30:41 UTC) #38
commit-bot: I haz the power
4 years ago (2016-12-17 02:34:29 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/657c5e7bbb7ea1ae591d97de9adf46a03410a37c
Cr-Commit-Position: refs/heads/master@{#439292}

Powered by Google App Engine
This is Rietveld 408576698