summaryrefslogtreecommitdiffstats
path: root/chrome/browser/possible_url_model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/possible_url_model.cc')
-rw-r--r--chrome/browser/possible_url_model.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/possible_url_model.cc b/chrome/browser/possible_url_model.cc
index f419762..d84c54f 100644
--- a/chrome/browser/possible_url_model.cc
+++ b/chrome/browser/possible_url_model.cc
@@ -132,13 +132,11 @@ std::wstring PossibleURLModel::GetText(int row, int col_id) {
}
if (col_id == IDS_ASI_PAGE_COLUMN) {
- const std::wstring& title = GetTitle(row);
+ std::wstring title = GetTitle(row);
// TODO(xji): Consider adding a special case if the title text is a URL,
// since those should always have LTR directionality. Please refer to
// http://crbug.com/6726 for more information.
- std::wstring localized_title;
- if (base::i18n::AdjustStringForLocaleDirection(title, &localized_title))
- return localized_title;
+ base::i18n::AdjustStringForLocaleDirection(&title);
return title;
}