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

Unified Diff: chrome/common/extensions/docs/server2/file_system.py

Issue 12230015: Fix unicode rendering of IDL files in the extension/apps developer server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | chrome/common/extensions/docs/server2/local_file_system.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/file_system.py
diff --git a/chrome/common/extensions/docs/server2/file_system.py b/chrome/common/extensions/docs/server2/file_system.py
index 540abe8fe606705f7f698b3420993752aec35ac4..cbc19b3155f79f07ba2779b27a8f225d5162d39e 100644
--- a/chrome/common/extensions/docs/server2/file_system.py
+++ b/chrome/common/extensions/docs/server2/file_system.py
@@ -15,9 +15,7 @@ class StatInfo(object):
self.version = version
self.child_versions = child_versions
-def _ProcessFileData(data, path):
- if os.path.splitext(path)[-1] not in ['.js', '.html', '.json']:
not at google - send to devlin 2013/02/13 17:12:55 IIRC this check was so that we didn't try to unico
- return data
+def _ToUnicode(data):
try:
return unicode(data, 'utf-8')
except:
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/local_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698