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

Unified Diff: third_party/WebKit/Source/core/frame/PRESUBMIT.py

Issue 2290733002: Add new UseCounter metric (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make diff prettier Created 4 years, 3 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
Index: third_party/WebKit/Source/core/frame/PRESUBMIT.py
diff --git a/third_party/WebKit/Source/core/frame/PRESUBMIT.py b/third_party/WebKit/Source/core/frame/PRESUBMIT.py
index 67c2ee8d78ee2c2a3b3eb6efafd59171cd2f0ae0..8eb93a3aae97bae6cb31bcd9d7b14766450ddadc 100644
--- a/third_party/WebKit/Source/core/frame/PRESUBMIT.py
+++ b/third_party/WebKit/Source/core/frame/PRESUBMIT.py
@@ -21,9 +21,9 @@ def _RunUseCounterChecks(input_api, output_api):
maximumBucket = 0
# Looking for a line like "case CSSPropertyGrid: return 453;"
bucketFinder = input_api.re.compile(r'.*CSSProperty.*return\s*([0-9]+).*')
- # Looking for a line like "static int maximumCSSSampleId() { return 452; }"
+ # Looking for a line like "int maximumCSSSampleId() { return 452; }"
maximumFinder = input_api.re.compile(
- r'static int maximumCSSSampleId\(\) { return ([0-9]+)')
+ r'int maximumCSSSampleId\(\) { return ([0-9]+)')
for line in useCounterCpp.NewContents():
bucketMatch = bucketFinder.match(line)
if bucketMatch:
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | third_party/WebKit/Source/core/frame/UseCounter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698