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

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

Issue 2368103003: Adjust CSS property maximum tracking to be more clang-format friendly. (Closed)
Patch Set: Remove parens 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8eb93a3aae97bae6cb31bcd9d7b14766450ddadc..f4541a133a55a9cce6075d335be3b23e02b714ba 100644
--- a/third_party/WebKit/Source/core/frame/PRESUBMIT.py
+++ b/third_party/WebKit/Source/core/frame/PRESUBMIT.py
@@ -23,7 +23,7 @@ def _RunUseCounterChecks(input_api, output_api):
bucketFinder = input_api.re.compile(r'.*CSSProperty.*return\s*([0-9]+).*')
# Looking for a line like "int maximumCSSSampleId() { return 452; }"
maximumFinder = input_api.re.compile(
- r'int maximumCSSSampleId\(\) { return ([0-9]+)')
+ r'constexpr int kMaximumCSSSampleId = ([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.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698