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

Unified Diff: net/base/mime_util.cc

Issue 7077014: Promoting the MHTML file extension to primary mappings. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util.cc
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc
index 1ff023db24ee1e8d201374635aa2a02fc56f707c..d8876542434c10ead0a65dbbdfb8428a1a3603a4 100644
--- a/net/base/mime_util.cc
+++ b/net/base/mime_util.cc
@@ -95,7 +95,8 @@ static const MimeInfo primary_mappings[] = {
{ "audio/webm", "webm" },
{ "audio/wav", "wav" },
{ "application/xhtml+xml", "xhtml,xht" },
- { "application/x-chrome-extension", "crx" }
+ { "application/x-chrome-extension", "crx" },
+ { "multipart/related", "mht,mhtml" }
wtc 2011/05/27 17:21:12 Nit: it seems better to list mhtml before mht. See
};
static const MimeInfo secondary_mappings[] = {
@@ -117,8 +118,7 @@ static const MimeInfo secondary_mappings[] = {
{ "application/rdf+xml", "rdf" },
{ "text/xml", "xsl,xbl" },
{ "application/vnd.mozilla.xul+xml", "xul" },
- { "application/x-shockwave-flash", "swf,swl" },
- { "multipart/related", "mht,mhtml" }
+ { "application/x-shockwave-flash", "swf,swl" }
};
static const char* FindMimeType(const MimeInfo* mappings,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698