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

Unified Diff: chrome/browser/ui/views/importer_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, 11 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/importer_view.cc
===================================================================
--- chrome/browser/ui/views/importer_view.cc (revision 70562)
+++ chrome/browser/ui/views/importer_view.cc (working copy)
@@ -53,28 +53,28 @@
void ImporterView::SetupControl() {
// Adds all controls.
- import_from_label_ =
- new views::Label(l10n_util::GetString(IDS_IMPORT_FROM_LABEL));
+ import_from_label_ = new views::Label(UTF16ToWide(
+ l10n_util::GetStringUTF16(IDS_IMPORT_FROM_LABEL)));
profile_combobox_ = new views::Combobox(this);
profile_combobox_->set_listener(this);
profile_combobox_->SetAccessibleName(import_from_label_->GetText());
- import_items_label_ =
- new views::Label(l10n_util::GetString(IDS_IMPORT_ITEMS_LABEL));
+ import_items_label_ = new views::Label(UTF16ToWide(
+ l10n_util::GetStringUTF16(IDS_IMPORT_ITEMS_LABEL)));
- history_checkbox_ =
- InitCheckbox(l10n_util::GetString(IDS_IMPORT_HISTORY_CHKBOX),
- (initial_state_ & importer::HISTORY) != 0);
- favorites_checkbox_ =
- InitCheckbox(l10n_util::GetString(IDS_IMPORT_FAVORITES_CHKBOX),
- (initial_state_ & importer::FAVORITES) != 0);
- passwords_checkbox_ =
- InitCheckbox(l10n_util::GetString(IDS_IMPORT_PASSWORDS_CHKBOX),
- (initial_state_ & importer::PASSWORDS) != 0);
- search_engines_checkbox_ =
- InitCheckbox(l10n_util::GetString(IDS_IMPORT_SEARCH_ENGINES_CHKBOX),
- (initial_state_ & importer::SEARCH_ENGINES) != 0);
+ history_checkbox_ = InitCheckbox(
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_IMPORT_HISTORY_CHKBOX)),
+ (initial_state_ & importer::HISTORY) != 0);
+ favorites_checkbox_ = InitCheckbox(
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_IMPORT_FAVORITES_CHKBOX)),
+ (initial_state_ & importer::FAVORITES) != 0);
+ passwords_checkbox_ = InitCheckbox(
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_IMPORT_PASSWORDS_CHKBOX)),
+ (initial_state_ & importer::PASSWORDS) != 0);
+ search_engines_checkbox_ = InitCheckbox(
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_IMPORT_SEARCH_ENGINES_CHKBOX)),
+ (initial_state_ & importer::SEARCH_ENGINES) != 0);
// Arranges controls by using GridLayout.
const int column_set_id = 0;
@@ -122,7 +122,7 @@
std::wstring ImporterView::GetDialogButtonLabel(
MessageBoxFlags::DialogButton button) const {
if (button == MessageBoxFlags::DIALOGBUTTON_OK) {
- return l10n_util::GetString(IDS_IMPORT_COMMIT);
+ return UTF16ToWide(l10n_util::GetStringUTF16(IDS_IMPORT_COMMIT));
} else {
return std::wstring();
}
@@ -145,7 +145,7 @@
}
std::wstring ImporterView::GetWindowTitle() const {
- return l10n_util::GetString(IDS_IMPORT_SETTINGS_TITLE);
+ return UTF16ToWide(l10n_util::GetStringUTF16(IDS_IMPORT_SETTINGS_TITLE));
}
bool ImporterView::Accept() {

Powered by Google App Engine
This is Rietveld 408576698