DescriptionImplement ChromeOS mime type extension mappings.
Previously ChromeOS used same implementation with linux which returns mime type by reading mimetype-extension database in the OS.
However it doesn't worked since ChromeOS doesn't have it.
This CL implements ChromeOS specific logic which returns mime type based on hard-coded list.
BUG=472017, 477913, 488378
TEST=net_unittests:MimeUtilTest.ExtensionTest
Committed: https://crrev.com/c8297369dc77b7f06027b3ca91bd4c9cc552a3cf
Cr-Commit-Position: refs/heads/master@{#330482}
Patch Set 1 #Patch Set 2 : Move to platform_mime_util_chromeos.cc #
Total comments: 15
Patch Set 3 : Move to mime_extension_chromeos.cc. #Patch Set 4 : Convert to UTF8. #Patch Set 5 : Reject an input which contains a null character. #Patch Set 6 : Move constant definition. #Patch Set 7 : Fix compile error. #Patch Set 8 : Add application/zip (required by test). #Patch Set 9 : Flag guard two test cases for ChromeOS. #
Total comments: 8
Patch Set 10 : Address comments. #
Messages
Total messages: 19 (2 generated)
|