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

Unified Diff: chrome/browser/chromeos/login/new_user_view.cc

Issue 8142026: Revert 104076 - Change std::wstring to string16 for views::Link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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/chromeos/login/new_user_view.cc
===================================================================
--- chrome/browser/chromeos/login/new_user_view.cc (revision 104083)
+++ chrome/browser/chromeos/login/new_user_view.cc (working copy)
@@ -289,10 +289,11 @@
const gfx::Font& base_font = rb.GetFont(ResourceBundle::BaseFont);
title_label_->SetFont(title_font);
- title_label_->SetText(
- l10n_util::GetStringUTF16(IDS_LOGIN_TITLE));
+ title_label_->SetText(UTF16ToWide(
+ l10n_util::GetStringUTF16(IDS_LOGIN_TITLE)));
title_hint_label_->SetFont(title_hint_font);
- title_hint_label_->SetText(l10n_util::GetStringUTF16(IDS_LOGIN_TITLE_HINT));
+ title_hint_label_->SetText(UTF16ToWide(
+ l10n_util::GetStringUTF16(IDS_LOGIN_TITLE_HINT)));
SetAndCorrectTextfieldFont(username_field_, base_font);
username_field_->set_text_to_display_when_empty(
l10n_util::GetStringUTF16(IDS_LOGIN_USERNAME));
@@ -303,13 +304,13 @@
l10n_util::GetStringUTF16(IDS_LOGIN_BUTTON)));
if (need_guest_link_) {
guest_link_->SetFont(base_font);
- guest_link_->SetText(
- l10n_util::GetStringUTF16(IDS_BROWSE_WITHOUT_SIGNING_IN_BUTTON));
+ guest_link_->SetText(UTF16ToWide(
+ l10n_util::GetStringUTF16(IDS_BROWSE_WITHOUT_SIGNING_IN_BUTTON)));
}
if (need_create_account_) {
create_account_link_->SetFont(base_font);
create_account_link_->SetText(
- l10n_util::GetStringUTF16(IDS_CREATE_ACCOUNT_BUTTON));
+ UTF16ToWide(l10n_util::GetStringUTF16(IDS_CREATE_ACCOUNT_BUTTON)));
}
delegate_->ClearErrors();
languages_menubutton_->SetText(
@@ -426,7 +427,7 @@
y += setViewBounds(password_field_, x, y, width, true) + kRowPad;
int sign_in_button_width = sign_in_button_->GetPreferredSize().width();
- setViewBounds(sign_in_button_, x, y, sign_in_button_width, true);
+ setViewBounds(sign_in_button_, x, y, sign_in_button_width,true);
SchedulePaint();
}
@@ -570,7 +571,7 @@
}
void NewUserView::InitLink(views::Link** link) {
- *link = new views::Link(string16());
+ *link = new views::Link(std::wstring());
(*link)->set_listener(this);
(*link)->SetNormalColor(login::kLinkColor);
(*link)->SetHighlightedColor(login::kLinkColor);
« no previous file with comments | « chrome/browser/chromeos/login/network_selection_view.cc ('k') | chrome/browser/chromeos/login/password_changed_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698