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

Unified Diff: chrome/common/extensions/PRESUBMIT.py

Issue 164493004: Docserver: Strip extension from template filenames on presubmit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/PRESUBMIT.py
diff --git a/chrome/common/extensions/PRESUBMIT.py b/chrome/common/extensions/PRESUBMIT.py
index 2e138c94db282c94ab52cd1ed24e765e061fd2b7..ed80458a8de3cac94bb80aadc3951ccc0cf3ecaa 100644
--- a/chrome/common/extensions/PRESUBMIT.py
+++ b/chrome/common/extensions/PRESUBMIT.py
@@ -48,7 +48,9 @@ def _FindMatchingTemplates(template_name, template_path_list):
unix_name = _UnixName(template_name)
for template in template_path_list:
if unix_name == _UnixName(template.split(os.sep)[-1]):
- matches.append(template)
+ # The docserver expects clean (extensionless) template URLs, so we strip
+ # extensions here when generating the list of matches.
+ matches.append(os.path.splitext(template)[0])
return matches
def _SanitizeAPIName(name, api_path):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698