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

Unified Diff: net/base/platform_mime_util_win.cc

Issue 1853653004: Windows: Convert mime types to lowercase in GetPlatformMimeTypeFromExtension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot to add required include. Created 4 years, 9 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/platform_mime_util_win.cc
diff --git a/net/base/platform_mime_util_win.cc b/net/base/platform_mime_util_win.cc
index fcac48faab53e3c10e0b12555a2c42edf720e444..1995ddf0eedf6e4c2015fb78ca4b724e5be6b56b 100644
--- a/net/base/platform_mime_util_win.cc
+++ b/net/base/platform_mime_util_win.cc
@@ -6,6 +6,7 @@
#include <string>
+#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/registry.h"
@@ -19,7 +20,7 @@ bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension(
base::win::RegKey(HKEY_CLASSES_ROOT, key.c_str(), KEY_READ).ReadValue(
L"Content Type", &value);
if (!value.empty()) {
- *result = base::WideToUTF8(value);
+ *result = base::ToLowerASCII(base::WideToUTF8(value));
return true;
}
return false;
« 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