| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 finally: | 96 finally: |
| 97 os.remove(tmp.name) | 97 os.remove(tmp.name) |
| 98 | 98 |
| 99 | 99 |
| 100 def main(): | 100 def main(): |
| 101 _vulcanize(directory='md_downloads', host='downloads', | 101 _vulcanize(directory='md_downloads', host='downloads', |
| 102 html_in_file='downloads.html') | 102 html_in_file='downloads.html') |
| 103 | 103 |
| 104 # Already loaded by history.html: | 104 # Already loaded by history.html: |
| 105 history_extra_args = ['--exclude', 'chrome://resources/html/util.html', | 105 history_extra_args = ['--exclude', 'chrome://resources/html/util.html', |
| 106 '--exclude', 'chrome://history/constants.html'] | 106 '--exclude', 'chrome://chrome/history/constants.html'] |
| 107 _vulcanize(directory='md_history', host='history', html_in_file='app.html', | 107 _vulcanize(directory='md_history', host='chrome/history', |
| 108 html_out_file='app.vulcanized.html', js_out_file='app.crisper.js', | 108 html_in_file='app.html', html_out_file='app.vulcanized.html', |
| 109 extra_args=history_extra_args) | 109 js_out_file='app.crisper.js', extra_args=history_extra_args) |
| 110 | 110 |
| 111 | 111 |
| 112 if __name__ == '__main__': | 112 if __name__ == '__main__': |
| 113 main() | 113 main() |
| OLD | NEW |