From cb9242bbb167960e872bb12efbecb93610d43350 Mon Sep 17 00:00:00 2001 From: "fbarchard@chromium.org" Date: Wed, 22 Jul 2009 02:27:35 +0000 Subject: mp4 types in omnibox only for chrome, not chromium The types are still claimed as supported because layout tests require them, but the extensions will not map to mimetypes, so typing them into the omnibox will download instead of trying to play the video. The fixes for canPlayType that kyle is doing will fix some of this, and we'll also need to update the media in the layouttests. So that portion of mimetype will be deferred BUG=17323 TEST=in the omni box type in the name of an mp4 and it should work in chrome, but not in chromium. Review URL: http://codereview.chromium.org/155835 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21261 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/mime_util.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc index 6be08d5..4cbb94d 100644 --- a/net/base/mime_util.cc +++ b/net/base/mime_util.cc @@ -69,9 +69,11 @@ static const MimeInfo primary_mappings[] = { { "image/gif", "gif" }, { "image/jpeg", "jpeg,jpg" }, { "image/png", "png" }, +#if defined(GOOGLE_CHROME_BUILD) { "video/mp4", "mp4,m4v" }, { "audio/x-m4a", "m4a" }, { "audio/mp3", "mp3" }, +#endif { "video/ogg", "ogv,ogm" }, { "audio/ogg", "ogg,oga" }, { "application/xhtml+xml", "xhtml,xht" } @@ -184,6 +186,7 @@ static const char* const supported_media_types[] = { "video/ogg", "audio/ogg", + // TODO(fbarchard): Remove these for Chromium when layout tests dont use mp4 // MPEG-4. "video/mp4", "video/x-m4v", -- cgit v1.1