Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: chrome/browser/ui/views/first_run_search_engine_view.cc

Issue 6088008: Remove wstring from l10n_util. Part 7.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/first_run_search_engine_view.cc
===================================================================
--- chrome/browser/ui/views/first_run_search_engine_view.cc (revision 70562)
+++ chrome/browser/ui/views/first_run_search_engine_view.cc (working copy)
@@ -13,6 +13,7 @@
#include "base/i18n/rtl.h"
#include "base/rand_util.h"
#include "base/time.h"
+#include "base/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/search_engine_type.h"
#include "chrome/browser/search_engines/template_url.h"
@@ -53,7 +54,9 @@
SearchEngineChoice::SearchEngineChoice(views::ButtonListener* listener,
const TemplateURL* search_engine,
bool use_small_logos)
- : NativeButton(listener, l10n_util::GetString(IDS_FR_SEARCH_CHOOSE)),
+ : NativeButton(
+ listener,
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_FR_SEARCH_CHOOSE))),
is_image_label_(false),
search_engine_(search_engine),
slot_(0) {
@@ -293,8 +296,8 @@
int label_width = GetPreferredSize().width() - 2 * kPanelHorizMargin;
// Add title and text asking the user to choose a search engine:
- title_label_ = new Label(l10n_util::GetString(
- IDS_FR_SEARCH_MAIN_LABEL));
+ title_label_ = new Label(UTF16ToWide(l10n_util::GetStringUTF16(
+ IDS_FR_SEARCH_MAIN_LABEL)));
title_label_->SetColor(SK_ColorBLACK);
title_label_->SetFont(title_label_->font().DeriveFont(3, gfx::Font::BOLD));
title_label_->SetMultiLine(true);
@@ -302,8 +305,9 @@
title_label_->SizeToFit(label_width);
AddChildView(title_label_);
- text_label_ = new Label(l10n_util::GetStringF(IDS_FR_SEARCH_TEXT,
- l10n_util::GetString(IDS_PRODUCT_NAME)));
+ text_label_ = new Label(UTF16ToWide(l10n_util::GetStringFUTF16(
+ IDS_FR_SEARCH_TEXT,
+ l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))));
text_label_->SetColor(SK_ColorBLACK);
text_label_->SetFont(text_label_->font().DeriveFont(1, gfx::Font::NORMAL));
text_label_->SetMultiLine(true);
@@ -426,5 +430,5 @@
}
std::wstring FirstRunSearchEngineView::GetWindowTitle() const {
- return l10n_util::GetString(IDS_FIRSTRUN_DLG_TITLE);
+ return UTF16ToWide(l10n_util::GetStringUTF16(IDS_FIRSTRUN_DLG_TITLE));
}

Powered by Google App Engine
This is Rietveld 408576698