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

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

Issue 9704056: Login dialog->views on cros too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/views/login_view.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/login_view.cc
===================================================================
--- chrome/browser/ui/views/login_view.cc (revision 126924)
+++ chrome/browser/ui/views/login_view.cc (working copy)
@@ -25,7 +25,7 @@
///////////////////////////////////////////////////////////////////////////////
// LoginView, public:
-LoginView::LoginView(const std::wstring& explanation, LoginModel* model)
+LoginView::LoginView(const string16& explanation, LoginModel* model)
: username_field_(new views::Textfield),
password_field_(new views::Textfield(views::Textfield::STYLE_OBSCURED)),
username_label_(new views::Label(
@@ -87,11 +87,11 @@
login_model_->SetObserver(NULL);
}
-std::wstring LoginView::GetUsername() {
+string16 LoginView::GetUsername() {
return username_field_->text();
}
-std::wstring LoginView::GetPassword() {
+string16 LoginView::GetPassword() {
return password_field_->text();
}
@@ -102,8 +102,8 @@
///////////////////////////////////////////////////////////////////////////////
// LoginView, views::View, views::LoginModelObserver overrides:
-void LoginView::OnAutofillDataAvailable(const std::wstring& username,
- const std::wstring& password) {
+void LoginView::OnAutofillDataAvailable(const string16& username,
+ const string16& password) {
if (username_field_->text().empty()) {
username_field_->SetText(username);
password_field_->SetText(password);
« no previous file with comments | « chrome/browser/ui/views/login_view.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698