Revert of Remove OneClickSigninHelper since it is no longer used. (patchset #5 id...
[chromium-blink-merge.git] / tools / metrics / histograms / update_extension_functions.py
blob1d000332386c41146115ad6000d1c39079d9e0b4
1 # Copyright 2013 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.
5 """Updates ExtensionFunctions enum in histograms.xml file with values read from
6 extension_function_histogram_value.h.
8 If the file was pretty-printed, the updated version is pretty-printed too.
9 """
11 import os
12 import sys
14 from update_histogram_enum import UpdateHistogramEnum
16 if __name__ == '__main__':
17 if len(sys.argv) > 1:
18 print >>sys.stderr, 'No arguments expected!'
19 sys.stderr.write(__doc__)
20 sys.exit(1)
22 UpdateHistogramEnum(histogram_enum_name='ExtensionFunctions',
23 source_enum_path=
24 os.path.join('..', '..', '..', 'extensions',
25 'browser',
26 'extension_function_histogram_value.h'),
27 start_marker='^enum HistogramValue {',
28 end_marker='^ENUM_BOUNDARY')