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

Side by Side Diff: chrome/browser/chromeos/login/password_changed_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/password_changed_view.h" 5 #include "chrome/browser/chromeos/login/password_changed_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" 8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h"
9 #include "chrome/browser/chromeos/login/textfield_with_margin.h" 9 #include "chrome/browser/chromeos/login/textfield_with_margin.h"
10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 void PasswordChangedView::Init() { 91 void PasswordChangedView::Init() {
92 // Set up fonts. 92 // Set up fonts.
93 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 93 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
94 gfx::Font title_font = rb.GetFont(ResourceBundle::MediumBoldFont); 94 gfx::Font title_font = rb.GetFont(ResourceBundle::MediumBoldFont);
95 95
96 // Create controls 96 // Create controls
97 title_label_ = new Label(); 97 title_label_ = new Label();
98 title_label_->SetFont(title_font); 98 title_label_->SetFont(title_font);
99 title_label_->SetText( 99 title_label_->SetText(
100 l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_TITLE)); 100 UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_TITLE)));
101 title_label_->SetHorizontalAlignment(Label::ALIGN_LEFT); 101 title_label_->SetHorizontalAlignment(Label::ALIGN_LEFT);
102 102
103 description_label_ = new Label(); 103 description_label_ = new Label();
104 description_label_->SetText( 104 description_label_->SetText(
105 l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_DESC)); 105 UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_DESC)));
106 description_label_->SetMultiLine(true); 106 description_label_->SetMultiLine(true);
107 description_label_->SetHorizontalAlignment(Label::ALIGN_LEFT); 107 description_label_->SetHorizontalAlignment(Label::ALIGN_LEFT);
108 108
109 full_sync_radio_ = new RadioButton( 109 full_sync_radio_ = new RadioButton(
110 UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_RESET)), 110 UTF16ToWide(l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_RESET)),
111 0); 111 0);
112 full_sync_radio_->set_listener(this); 112 full_sync_radio_->set_listener(this);
113 full_sync_radio_->SetMultiLine(true); 113 full_sync_radio_->SetMultiLine(true);
114 114
115 delta_sync_radio_ = new RadioButton( 115 delta_sync_radio_ = new RadioButton(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 old_password_field_->RequestFocus(); 196 old_password_field_->RequestFocus();
197 } 197 }
198 } 198 }
199 199
200 bool PasswordChangedView::HandleKeyEvent(views::Textfield* sender, 200 bool PasswordChangedView::HandleKeyEvent(views::Textfield* sender,
201 const views::KeyEvent& keystroke) { 201 const views::KeyEvent& keystroke) {
202 return false; 202 return false;
203 } 203 }
204 204
205 } // namespace chromeos 205 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/new_user_view.cc ('k') | chrome/browser/chromeos/login/take_photo_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698