• yawano's avatar
    Implement ChromeOS mime type extension mappings. · c8297369
    yawano authored
    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
    
    Review URL: https://codereview.chromium.org/1134393002
    
    Cr-Commit-Position: refs/heads/master@{#330482}
    c8297369
mime_extension_chromeos.cc 1.31 KB