| Index: chrome/browser/resources/PRESUBMIT.py
|
| diff --git a/chrome/browser/resources/PRESUBMIT.py b/chrome/browser/resources/PRESUBMIT.py
|
| index 4487888f7a1da644522848910a357ce2dcbb45f4..ad761dfb69de8225bd832a13b91636524268ffdd 100644
|
| --- a/chrome/browser/resources/PRESUBMIT.py
|
| +++ b/chrome/browser/resources/PRESUBMIT.py
|
| @@ -44,8 +44,9 @@ def _CommonChecks(input_api, output_api):
|
| sys.path = [resources] + old_path
|
| from web_dev_style import css_checker, js_checker
|
|
|
| - def is_resource(f):
|
| - return f.LocalPath().endswith(('.css', '.html', '.js'))
|
| + def is_resource(maybe_resource):
|
| + f = maybe_resource.AbsoluteLocalPath()
|
| + return f.endswith(('.css', '.html', '.js')) and f.startswith(resources)
|
|
|
| results.extend(css_checker.CSSChecker(input_api, output_api,
|
| file_filter=is_resource).RunChecks())
|
|
|