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

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

Issue 2787573003: Remove DumpWithoutCrashing from ShouldAllowOpenURL. (Closed)
Patch Set: Address asvitkine's comments Created 3 years, 8 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
« no previous file with comments | « tools/metrics/histograms/presubmit_scheme_histograms.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2017 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 the ShouldAllowOpenURLFailureScheme enum in histograms.xml file with
6 values read from chrome_content_browser_client_extensions_part.cc.
7
8 If the file was pretty-printed, the updated version is pretty-printed too.
9 """
10
11 import os
12 import sys
13
14 from update_histogram_enum import UpdateHistogramEnum
15
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)
21
22 source_file = 'chrome/browser/extensions/' \
23 'chrome_content_browser_client_extensions_part.cc'
24 UpdateHistogramEnum(histogram_enum_name='ShouldAllowOpenURLFailureScheme',
25 source_enum_path=source_file,
26 start_marker='^enum ShouldAllowOpenURLFailureScheme {',
27 end_marker='^SCHEME_LAST')
OLDNEW
« no previous file with comments | « tools/metrics/histograms/presubmit_scheme_histograms.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698