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

Unified Diff: tools/grit/grit/format/html_inline.py

Issue 66041: This adds link[rel=icon] elements to the DOM UI html files for downloads and ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « chrome/browser/resources/history.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/html_inline.py
===================================================================
--- tools/grit/grit/format/html_inline.py (revision 13287)
+++ tools/grit/grit/format/html_inline.py (working copy)
@@ -98,9 +98,13 @@
# TODO(glen): Make this regex not match url('') that is not inside a style
flat_text = re.sub('background:[ ]*url\(\'(?P<filename>[^"\']*)\'',
- SrcReplace,
- flat_text)
+ SrcReplace,
+ flat_text)
+ flat_text = re.sub('<link rel="icon".+?href="(?P<filename>[^"\']*)"',
+ SrcReplace,
+ flat_text)
+
out_file = open(output_filename, 'wb')
out_file.writelines(flat_text)
out_file.close()
@@ -114,4 +118,3 @@
if __name__ == '__main__':
main()
-
« no previous file with comments | « chrome/browser/resources/history.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698