summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search_engines
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-29 22:10:13 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-29 22:10:13 +0000
commit1308ac961fdd5148ce95e228fe192175584a5464 (patch)
tree08f1e60a5b15a97aca4b24d1dd4e92e0dd1dc6ca /chrome/browser/search_engines
parentd546c48d90f0eaa592794f59e6a970b7b027db86 (diff)
downloadchromium_src-1308ac961fdd5148ce95e228fe192175584a5464.zip
chromium_src-1308ac961fdd5148ce95e228fe192175584a5464.tar.gz
chromium_src-1308ac961fdd5148ce95e228fe192175584a5464.tar.bz2
Revert 70271 - Remove wstring from l10n_util. Part 3.
BUG=9911 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6044006 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/6051012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search_engines')
-rw-r--r--chrome/browser/search_engines/template_url_table_model.cc17
1 files changed, 7 insertions, 10 deletions
diff --git a/chrome/browser/search_engines/template_url_table_model.cc b/chrome/browser/search_engines/template_url_table_model.cc
index 0acbb37..6ab7794 100644
--- a/chrome/browser/search_engines/template_url_table_model.cc
+++ b/chrome/browser/search_engines/template_url_table_model.cc
@@ -188,12 +188,9 @@ std::wstring TemplateURLTableModel::GetText(int row, int col_id) {
// since those should always be displayed LTR. Please refer to
// http://crbug.com/6726 for more information.
base::i18n::AdjustStringForLocaleDirection(&url_short_name);
- if (template_url_model_->GetDefaultSearchProvider() == &url) {
- return UTF16ToWideHack(
- l10n_util::GetStringFUTF16(IDS_SEARCH_ENGINES_EDITOR_DEFAULT_ENGINE,
- WideToUTF16Hack(url_short_name)));
- }
- return url_short_name;
+ return (template_url_model_->GetDefaultSearchProvider() == &url) ?
+ l10n_util::GetStringF(IDS_SEARCH_ENGINES_EDITOR_DEFAULT_ENGINE,
+ url_short_name) : url_short_name;
}
case IDS_SEARCH_ENGINES_EDITOR_KEYWORD_COLUMN: {
@@ -226,14 +223,14 @@ TemplateURLTableModel::Groups TemplateURLTableModel::GetGroups() {
Groups groups;
Group search_engine_group;
- search_engine_group.title = UTF16ToWideHack(
- l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_MAIN_SEPARATOR));
+ search_engine_group.title =
+ l10n_util::GetString(IDS_SEARCH_ENGINES_EDITOR_MAIN_SEPARATOR);
search_engine_group.id = kMainGroupID;
groups.push_back(search_engine_group);
Group other_group;
- other_group.title = UTF16ToWideHack(
- l10n_util::GetStringUTF16(IDS_SEARCH_ENGINES_EDITOR_OTHER_SEPARATOR));
+ other_group.title =
+ l10n_util::GetString(IDS_SEARCH_ENGINES_EDITOR_OTHER_SEPARATOR);
other_group.id = kOtherGroupID;
groups.push_back(other_group);