Chromium Code Reviews| OLD | NEW |
|---|---|
| (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. | |
|
Ilya Sherman
2014/03/14 23:19:35
I would name this file "update_extension_permissio
| |
| 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') | |
| OLD | NEW |