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

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

Issue 2352553002: [MD History] Run MD History on chrome://chrome/history. (Closed)
Patch Set: Created 4 years, 3 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 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
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()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698