Chromium Code Reviews| Index: net/base/mime_util.cc |
| diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc |
| index 0d511201fd0cdfdda126ad480bc0157e5385e33f..8e7496442107da13e9779f826766c35ca53a0657 100644 |
| --- a/net/base/mime_util.cc |
| +++ b/net/base/mime_util.cc |
| @@ -359,6 +359,12 @@ bool GetWellKnownMimeTypeFromExtension(const base::FilePath::StringType& ext, |
| bool GetPreferredExtensionForMimeType(const std::string& mime_type, |
| base::FilePath::StringType* extension) { |
| + // Force .crt extension for client certificates. |
| + if (mime_type == "application/x-x509-user-cert") { |
| + *extension = "crt"; |
|
mmenke
2015/10/29 16:40:46
Shouldn't this just be in secondary_mappings, or p
svaldez
2015/10/29 16:54:59
Putting it in primary/secondary_mappings restricts
|
| + return true; |
| + } |
| + |
| return g_mime_util.Get().GetPreferredExtensionForMimeType(mime_type, |
| extension); |
| } |