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

Issue 170233008: Add presubmit check and automatic update script for ExtensionPermission enum. (Closed)

Created:
6 years, 10 months ago by ahernandez
Modified:
6 years, 9 months ago
CC:
M-A Ruel, Jói, chromium-reviews, extensions-reviews_chromium.org, jar (doing other things), tfarina, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add presubmit check and automatic update script for ExtensionPermission enum. BUG=338781 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259302

Patch Set 1 #

Total comments: 21

Patch Set 2 : #

Patch Set 3 : Update directory name #

Total comments: 11

Patch Set 4 : Add new enum in histograms.xml #

Total comments: 4

Patch Set 5 : Fix nits #

Total comments: 5

Patch Set 6 : Cleanup #

Total comments: 3

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+567 lines, -1175 lines) Patch
D chrome/browser/extensions/PRESUBMIT.py View 1 2 3 1 chunk +0 lines, -22 lines 0 comments Download
M extensions/browser/PRESUBMIT.py View 1 2 3 2 chunks +17 lines, -283 lines 0 comments Download
D extensions/browser/PRESUBMIT_test.py View 1 2 3 1 chunk +0 lines, -236 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_1.txt View 1 2 3 1 chunk +0 lines, -35 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_10.txt View 1 2 3 1 chunk +0 lines, -29 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_11.txt View 1 2 3 1 chunk +0 lines, -32 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_2.txt View 1 2 3 1 chunk +0 lines, -33 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_3.txt View 1 2 3 1 chunk +0 lines, -34 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_4.txt View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_5.txt View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_6.txt View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_7.txt View 1 2 3 1 chunk +0 lines, -40 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_8.txt View 1 2 3 1 chunk +0 lines, -35 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_new_file_9.txt View 1 2 3 1 chunk +0 lines, -38 lines 0 comments Download
D extensions/browser/PRESUBMIT_test_old_file.txt View 1 2 3 1 chunk +0 lines, -34 lines 0 comments Download
A extensions/common/permissions/PRESUBMIT.py View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +65 lines, -0 lines 0 comments Download
M tools/metrics/histograms/update_extension_functions.py View 1 2 3 1 chunk +8 lines, -138 lines 0 comments Download
A tools/metrics/histograms/update_extension_permission.py View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A + tools/metrics/histograms/update_histogram_enum.py View 1 2 3 4 5 6 4 chunks +52 lines, -68 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_1.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A + tools/strict_enum_value_checker/changed_file_10.h View 1 2 3 1 chunk +16 lines, -12 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_2.h View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_3.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_4.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_5.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_6.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_7.h View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_8.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A tools/strict_enum_value_checker/changed_file_9.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A tools/strict_enum_value_checker/mock_enum.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A + tools/strict_enum_value_checker/strict_enum_value_checker.py View 1 2 3 10 chunks +40 lines, -64 lines 0 comments Download
A + tools/strict_enum_value_checker/strict_enum_value_checker_test.py View 1 2 3 4 5 6 9 chunks +22 lines, -23 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
ahernandez
Hi, Could you please review these changes? And, regarding these changes, update_extension_permission.py is a revised ...
6 years, 10 months ago (2014-02-18 19:50:45 UTC) #1
rpaquay
Thanks for doing this work! I think it is on the right track overall. Note ...
6 years, 10 months ago (2014-02-18 21:39:26 UTC) #2
ahernandez
jyasskin, Could you review this python code? I need to add someone with python readability. ...
6 years, 10 months ago (2014-02-20 17:23:41 UTC) #3
Jeffrey Yasskin
https://codereview.chromium.org/170233008/diff/1/chrome/browser/extensions/PRESUBMIT.py File chrome/browser/extensions/PRESUBMIT.py (right): https://codereview.chromium.org/170233008/diff/1/chrome/browser/extensions/PRESUBMIT.py#newcode22 chrome/browser/extensions/PRESUBMIT.py:22: sys.path = sys.path + [input_api.os_path.join( "sys.path.append(input_api...)" https://codereview.chromium.org/170233008/diff/1/chrome/browser/extensions/PRESUBMIT.py#newcode23 chrome/browser/extensions/PRESUBMIT.py:23: input_api.PresubmitLocalPath(), ...
6 years, 10 months ago (2014-02-20 19:07:36 UTC) #4
ahernandez
maruel@, joi@: I created a new directory under src/tools called extra_imports, which contains a class ...
6 years, 10 months ago (2014-02-20 22:37:28 UTC) #5
Jói
Why the name extra_imports? The tool within this directory seems to be named strict_enum_value_checker.py, why ...
6 years, 10 months ago (2014-02-21 11:44:39 UTC) #6
ahernandez
6 years, 10 months ago (2014-02-25 21:37:08 UTC) #7
Jói
I'm fine with the new directory name and location, so LGTM. Note however the comment ...
6 years, 10 months ago (2014-02-26 09:07:52 UTC) #8
ahernandez
isherman@, can you take a look at the histogram.xml file? I added a script to ...
6 years, 9 months ago (2014-03-01 21:01:54 UTC) #9
ahernandez
On 2014/03/01 21:01:54, ahernandez.miralles wrote: > isherman@, can you take a look at the histogram.xml ...
6 years, 9 months ago (2014-03-08 19:06:58 UTC) #10
Jeffrey Yasskin
https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/update_extension_functions.py File tools/metrics/histograms/update_extension_functions.py (right): https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/update_extension_functions.py#newcode5 tools/metrics/histograms/update_extension_functions.py:5: '''Updates ExtensionFunctions enum in histograms.xml file with values read ...
6 years, 9 months ago (2014-03-10 20:53:22 UTC) #11
Ilya Sherman
https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml#newcode26252 tools/metrics/histograms/histograms.xml:26252: + <int value="8" label="DESKTOP_CAPTURE"/> On 2014/02/26 09:07:53, Jói wrote: ...
6 years, 9 months ago (2014-03-10 22:21:53 UTC) #12
ahernandez
https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml#newcode26252 tools/metrics/histograms/histograms.xml:26252: + <int value="8" label="DESKTOP_CAPTURE"/> On 2014/03/10 22:21:54, Ilya Sherman ...
6 years, 9 months ago (2014-03-13 19:11:24 UTC) #13
rpaquay
https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml#newcode26252 tools/metrics/histograms/histograms.xml:26252: + <int value="8" label="DESKTOP_CAPTURE"/> On 2014/03/13 19:11:25, ahernandez.miralles wrote: ...
6 years, 9 months ago (2014-03-13 20:27:45 UTC) #14
ahernandez
On 2014/03/13 20:27:45, rpaquay wrote: > https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml#newcode26252 > ...
6 years, 9 months ago (2014-03-13 20:41:20 UTC) #15
Ilya Sherman
On 2014/03/13 20:41:20, ahernandez.miralles wrote: > On 2014/03/13 20:27:45, rpaquay wrote: > > > https://codereview.chromium.org/170233008/diff/260001/tools/metrics/histograms/histograms.xml ...
6 years, 9 months ago (2014-03-13 20:42:35 UTC) #16
rpaquay
On 2014/03/13 20:42:35, Ilya Sherman wrote: > On 2014/03/13 20:41:20, ahernandez.miralles wrote: > > On ...
6 years, 9 months ago (2014-03-13 20:56:34 UTC) #17
ahernandez
@rpaquay, @jyasskin, @isherman, could you please review these changes? Thank you.
6 years, 9 months ago (2014-03-13 21:39:26 UTC) #18
rpaquay
lgtm minus maybe python readability, which I can't really comment on.
6 years, 9 months ago (2014-03-13 22:31:11 UTC) #19
Ilya Sherman
https://codereview.chromium.org/170233008/diff/320001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/170233008/diff/320001/tools/metrics/histograms/histograms.xml#newcode27806 tools/metrics/histograms/histograms.xml:27806: +<enum name="ExtensionPermission2" type="int"> Shouldn't there be a histogram that ...
6 years, 9 months ago (2014-03-14 23:19:34 UTC) #20
ahernandez
@isherman, the current plan as I understand it is to upload a separate CL that ...
6 years, 9 months ago (2014-03-15 17:55:10 UTC) #21
Ilya Sherman
This should hopefully be the last round of review. Thanks for taking on this task ...
6 years, 9 months ago (2014-03-17 22:21:09 UTC) #22
ahernandez
@jyasskin, when you get a chance, can you please give a (hopefully) final look at ...
6 years, 9 months ago (2014-03-17 22:58:41 UTC) #23
Ilya Sherman
tools/metrics/histograms LGTM. Thanks!
6 years, 9 months ago (2014-03-17 23:30:34 UTC) #24
Jeffrey Yasskin
The python style lgtm. Sorry for the delay. https://codereview.chromium.org/170233008/diff/400001/tools/metrics/histograms/update_histogram_enum.py File tools/metrics/histograms/update_histogram_enum.py (right): https://codereview.chromium.org/170233008/diff/400001/tools/metrics/histograms/update_histogram_enum.py#newcode34 tools/metrics/histograms/update_histogram_enum.py:34: return ...
6 years, 9 months ago (2014-03-25 01:26:36 UTC) #25
ahernandez
The CQ bit was checked by ahernandez.miralles@gmail.com
6 years, 9 months ago (2014-03-25 17:21:05 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ahernandez.miralles@gmail.com/170233008/420001
6 years, 9 months ago (2014-03-25 17:23:35 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 19:49:10 UTC) #28
Message was sent while issue was closed.
Change committed as 259302

Powered by Google App Engine
This is Rietveld 408576698