summaryrefslogtreecommitdiff
path: root/chromium/tools/polymer/polymer.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/tools/polymer/polymer.py')
-rw-r--r--chromium/tools/polymer/polymer.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/chromium/tools/polymer/polymer.py b/chromium/tools/polymer/polymer.py
index eb5bc2037d5..e7567239658 100644
--- a/chromium/tools/polymer/polymer.py
+++ b/chromium/tools/polymer/polymer.py
@@ -82,11 +82,14 @@ _chrome_redirects = {
'chrome://resources/polymer/v1_0/': POLYMER_V1_DIR,
'chrome://resources/html/': 'ui/webui/resources/html/',
'chrome://resources/cr_elements/': 'ui/webui/resources/cr_elements/',
+ '//resources/polymer/v1_0/': POLYMER_V1_DIR,
+ '//resources/html/': 'ui/webui/resources/html/',
+ '//resources/cr_elements/': 'ui/webui/resources/cr_elements/',
}
_chrome_reverse_redirects = {
- POLYMER_V3_DIR: 'chrome://resources/polymer/v3_0/',
- 'ui/webui/resources/': 'chrome://resources/',
+ POLYMER_V3_DIR: '//resources/polymer/v3_0/',
+ 'ui/webui/resources/': '//resources/',
}
@@ -104,8 +107,8 @@ class Dependency:
self.html_file = src
self.html_path = dst
- self.input_format = (
- 'chrome' if self.html_path.startswith('chrome://') else 'relative')
+ self.input_format = ('chrome' if self.html_path.startswith('chrome://')
+ or self.html_path.startswith('//') else 'relative')
self.output_format = self.input_format
self.html_path_normalized = self._to_html_normalized()