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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/metrics/histograms/presubmit_scheme_histograms.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/update_should_allow_open_url_histograms.py
diff --git a/tools/metrics/histograms/update_should_allow_open_url_histograms.py b/tools/metrics/histograms/update_should_allow_open_url_histograms.py
new file mode 100644
index 0000000000000000000000000000000000000000..2b16c4f612df9244b687dcc71b278ad2db7bca8c
--- /dev/null
+++ b/tools/metrics/histograms/update_should_allow_open_url_histograms.py
@@ -0,0 +1,27 @@
+# Copyright 2017 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.
+
+"""Updates the ShouldAllowOpenURLFailureScheme enum in histograms.xml file with
+values read from chrome_content_browser_client_extensions_part.cc.
+
+If the file was pretty-printed, the updated version is pretty-printed too.
+"""
+
+import os
+import sys
+
+from update_histogram_enum import UpdateHistogramEnum
+
+if __name__ == '__main__':
+ if len(sys.argv) > 1:
+ print >>sys.stderr, 'No arguments expected!'
+ sys.stderr.write(__doc__)
+ sys.exit(1)
+
+ source_file = 'chrome/browser/extensions/' \
+ 'chrome_content_browser_client_extensions_part.cc'
+ UpdateHistogramEnum(histogram_enum_name='ShouldAllowOpenURLFailureScheme',
+ source_enum_path=source_file,
+ start_marker='^enum ShouldAllowOpenURLFailureScheme {',
+ end_marker='^SCHEME_LAST')
« 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