| Index: chrome/browser/search_engines/template_url.cc
|
| diff --git a/chrome/browser/search_engines/template_url.cc b/chrome/browser/search_engines/template_url.cc
|
| index 48f5d7d458334fb08ac846489af8f6d83746a5e4..c1ebf517ab91dd5d6e755339275a1b0680a6f327 100644
|
| --- a/chrome/browser/search_engines/template_url.cc
|
| +++ b/chrome/browser/search_engines/template_url.cc
|
| @@ -578,11 +578,9 @@ TemplateURL::~TemplateURL() {
|
| }
|
|
|
| std::wstring TemplateURL::AdjustedShortNameForLocaleDirection() const {
|
| - std::wstring bidi_safe_short_name;
|
| - if (base::i18n::AdjustStringForLocaleDirection(short_name_,
|
| - &bidi_safe_short_name))
|
| - return bidi_safe_short_name;
|
| - return short_name_;
|
| + std::wstring bidi_safe_short_name = short_name_;
|
| + base::i18n::AdjustStringForLocaleDirection(&bidi_safe_short_name);
|
| + return bidi_safe_short_name;
|
| }
|
|
|
| void TemplateURL::SetSuggestionsURL(const std::string& suggestions_url,
|
|
|