Index: chrome/browser/resources/PRESUBMIT.py |
diff --git a/chrome/browser/resources/PRESUBMIT.py b/chrome/browser/resources/PRESUBMIT.py |
index 0aa0d6350df9b7b7482078d93211f0dd69a8a0ed..16b169a37bd3ef488aaa6903ab4326eb70074eca 100644 |
--- a/chrome/browser/resources/PRESUBMIT.py |
+++ b/chrome/browser/resources/PRESUBMIT.py |
@@ -47,8 +47,11 @@ def _CommonChecks(input_api, output_api): |
def _html_css_js_resource(p): |
return p.endswith(('.html', '.css', '.js')) and p.startswith(resources) |
+ WHITELIST = ['chrome/browser/resources/pdf/index.html', |
+ 'chrome/browser/resources/pdf/index.js'] |
def is_resource(maybe_resource): |
- return _html_css_js_resource(maybe_resource.AbsoluteLocalPath()) |
+ return (not(maybe_resource.LocalPath() in WHITELIST) and |
M-A Ruel
2014/02/15 01:46:57
then it is a blacklist. Rename the variable, and u
raymes
2014/02/16 23:14:31
Done.
|
+ _html_css_js_resource(maybe_resource.AbsoluteLocalPath())) |
results.extend(css_checker.CSSChecker( |
input_api, output_api, file_filter=is_resource).RunChecks()) |