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

Side by Side Diff: tools/metrics/histograms/update_extension_permission.py

Issue 170233008: Add presubmit check and automatic update script for ExtensionPermission enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """Updates ExtensionPermission2 enum in histograms.xml file with values read
6 from permission_message.h.
7
8 If the file was pretty-printed, the updated version is pretty-printed too.
9 """
10
11 import os
12
13 from update_histogram_enum import UpdateHistogramEnum
14
15 if __name__ == '__main__':
16 UpdateHistogramEnum(histogram_enum_name='ExtensionPermission2',
17 source_enum_path=os.path.join('..', '..', '..',
18 'extensions', 'common',
19 'permissions',
20 'permission_message.h'),
21 start_marker='^enum ID {',
22 end_marker='^kEnumBoundary')
OLDNEW
« no previous file with comments | « tools/metrics/histograms/update_extension_functions.py ('k') | tools/metrics/histograms/update_histogram_enum.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698