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

Side by Side Diff: chrome/browser/resources/md_downloads/vulcanize.py

Issue 1758913004: MD History/Downloads: use MD-specific text defaults (like other MD UIs) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dschuyler-patch
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import subprocess 7 import subprocess
8 import sys 8 import sys
9 import tempfile 9 import tempfile
10 10
(...skipping 23 matching lines...) Expand all
34 '--exclude', 'polymer-extracted.js', 34 '--exclude', 'polymer-extracted.js',
35 '--exclude', 'polymer-micro-extracted.js', 35 '--exclude', 'polymer-micro-extracted.js',
36 '--exclude', 'polymer-mini-extracted.js', 36 '--exclude', 'polymer-mini-extracted.js',
37 '--exclude', 'polymer_config.js', 37 '--exclude', 'polymer_config.js',
38 '--exclude', 'web-animations-next-lite.min.js', 38 '--exclude', 'web-animations-next-lite.min.js',
39 39
40 # These files are dynamically created by C++. 40 # These files are dynamically created by C++.
41 '--exclude', 'load_time_data.js', 41 '--exclude', 'load_time_data.js',
42 '--exclude', 'strings.js', 42 '--exclude', 'strings.js',
43 '--exclude', 'text_defaults.css', 43 '--exclude', 'text_defaults.css',
44 '--exclude', 'text_defaults_md.css',
44 45
45 '--inline-css', 46 '--inline-css',
46 '--inline-scripts', 47 '--inline-scripts',
47 48
48 '--redirect', 'chrome://downloads/|%s' % _HERE_PATH, 49 '--redirect', 'chrome://downloads/|%s' % _HERE_PATH,
49 '--redirect', 'chrome://resources/cr_elements/|%s' % _CR_ELEMENTS_PATH, 50 '--redirect', 'chrome://resources/cr_elements/|%s' % _CR_ELEMENTS_PATH,
50 '--redirect', 'chrome://resources/css/|%s' % _CSS_RESOURCES_PATH, 51 '--redirect', 'chrome://resources/css/|%s' % _CSS_RESOURCES_PATH,
51 '--redirect', 'chrome://resources/html/|%s' % _HTML_RESOURCES_PATH, 52 '--redirect', 'chrome://resources/html/|%s' % _HTML_RESOURCES_PATH,
52 '--redirect', 'chrome://resources/js/|%s' % _JS_RESOURCES_PATH, 53 '--redirect', 'chrome://resources/js/|%s' % _JS_RESOURCES_PATH,
53 '--redirect', 'chrome://resources/polymer/v1_0/|%s' % _POLYMER_PATH, 54 '--redirect', 'chrome://resources/polymer/v1_0/|%s' % _POLYMER_PATH,
(...skipping 24 matching lines...) Expand all
78 _run_cmd(['crisper', '--source', tmp.name, 79 _run_cmd(['crisper', '--source', tmp.name,
79 '--script-in-head', 'false', 80 '--script-in-head', 'false',
80 '--html', _HTML_OUT_PATH, 81 '--html', _HTML_OUT_PATH,
81 '--js', _JS_OUT_PATH]) 82 '--js', _JS_OUT_PATH])
82 finally: 83 finally:
83 os.remove(tmp.name) 84 os.remove(tmp.name)
84 85
85 86
86 if __name__ == '__main__': 87 if __name__ == '__main__':
87 main() 88 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698