summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search_engines
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 01:39:56 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 01:39:56 +0000
commit4a4afe389baae7c715da981aff490dda7f58f7a9 (patch)
tree737eaf351bac891f35342676ddbcf2ed256b69d8 /chrome/browser/search_engines
parentf5fb4d4bc5bc2477eb3d7aadd13bd5c487b79559 (diff)
downloadchromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.zip
chromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.tar.gz
chromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.tar.bz2
Use GetDisplayStringInLTRDirectionality() in more places to simplify code.
BUG=none TEST=none Review URL: http://codereview.chromium.org/1928004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search_engines')
-rw-r--r--chrome/browser/search_engines/template_url_table_model.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/chrome/browser/search_engines/template_url_table_model.cc b/chrome/browser/search_engines/template_url_table_model.cc
index 961506e..dcad47e 100644
--- a/chrome/browser/search_engines/template_url_table_model.cc
+++ b/chrome/browser/search_engines/template_url_table_model.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -189,15 +189,10 @@ std::wstring TemplateURLTableModel::GetText(int row, int col_id) {
}
case IDS_SEARCH_ENGINES_EDITOR_KEYWORD_COLUMN: {
- const std::wstring& keyword = url.keyword();
// Keyword should be domain name. Force it to have LTR directionality.
- if (base::i18n::IsRTL()) {
- std::wstring localized_keyword = keyword;
- base::i18n::WrapStringWithLTRFormatting(&localized_keyword);
- return localized_keyword;
- }
+ std::wstring keyword(url.keyword());
+ base::i18n::GetDisplayStringInLTRDirectionality(&keyword);
return keyword;
- break;
}
default: