| Index: chrome/browser/ui/omnibox/location_bar_util.cc
|
| diff --git a/chrome/browser/ui/omnibox/location_bar_util.cc b/chrome/browser/ui/omnibox/location_bar_util.cc
|
| index 66ceb4b81a6ae344534704de4ff30703fc3e7c7a..a5e94042ad9b9cf1288a3ee9b3345d2eff2c4c88 100644
|
| --- a/chrome/browser/ui/omnibox/location_bar_util.cc
|
| +++ b/chrome/browser/ui/omnibox/location_bar_util.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "app/l10n_util.h"
|
| #include "base/i18n/rtl.h"
|
| +#include "base/utf_string_conversions.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/search_engines/template_url.h"
|
| #include "chrome/browser/search_engines/template_url_model.h"
|
| @@ -31,7 +32,8 @@ std::wstring CalculateMinString(const std::wstring& description) {
|
| std::wstring min_string;
|
| if (chop_index == std::wstring::npos) {
|
| // No dot or whitespace, truncate to at most 3 chars.
|
| - min_string = l10n_util::TruncateString(description, 3);
|
| + min_string = UTF16ToWideHack(
|
| + l10n_util::TruncateString(WideToUTF16Hack(description), 3));
|
| } else {
|
| min_string = description.substr(0, chop_index);
|
| }
|
|
|