Chromium Code Reviews| Index: tools/metrics/histograms/update_extension_permission_2.py |
| diff --git a/tools/metrics/histograms/update_extension_permission_2.py b/tools/metrics/histograms/update_extension_permission_2.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1672841c07b3729db4f1f3747e0c3e3337e88100 |
| --- /dev/null |
| +++ b/tools/metrics/histograms/update_extension_permission_2.py |
| @@ -0,0 +1,22 @@ |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
|
Ilya Sherman
2014/03/14 23:19:35
I would name this file "update_extension_permissio
|
| + |
| +"""Updates ExtensionPermission2 enum in histograms.xml file with values read |
| +from permission_message.h. |
| + |
| +If the file was pretty-printed, the updated version is pretty-printed too. |
| +""" |
| + |
| +import os |
| + |
| +from update_histogram_enum import UpdateHistogramEnum |
| + |
| +if __name__ == '__main__': |
| + UpdateHistogramEnum(histogram_enum_name='ExtensionPermission2', |
| + source_enum_path=os.path.join('..', '..', '..', |
| + 'extensions', 'common', |
| + 'permissions', |
| + 'permission_message.h'), |
| + start_marker='^enum ID {', |
| + end_marker='^kEnumBoundary') |