Index: chrome/browser/search_engines/template_url_model.cc |
diff --git a/chrome/browser/search_engines/template_url_model.cc b/chrome/browser/search_engines/template_url_model.cc |
index ba8e38c178d435fd6992de22fe4cf1283695da71..12c5726e3f89521240cca4ef3fe3b9e89dfc8f12 100644 |
--- a/chrome/browser/search_engines/template_url_model.cc |
+++ b/chrome/browser/search_engines/template_url_model.cc |
@@ -161,7 +161,7 @@ std::wstring TemplateURLModel::GenerateKeyword(const GURL& url, |
std::wstring TemplateURLModel::CleanUserInputKeyword( |
const std::wstring& keyword) { |
// Remove the scheme. |
- std::wstring result(l10n_util::ToLower(keyword)); |
+ std::wstring result(UTF16ToWide(l10n_util::ToLower(WideToUTF16(keyword)))); |
url_parse::Component scheme_component; |
if (url_parse::ExtractScheme(WideToUTF8(keyword).c_str(), |
static_cast<int>(keyword.length()), |