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

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

Issue 120503005: Merge NativeTextfieldViews into views::Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix touch drag and drop unit test. Created 6 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/login_view.cc
diff --git a/chrome/browser/ui/views/login_view.cc b/chrome/browser/ui/views/login_view.cc
index 4cf96157c74689bad1378608ebbc17465ff8ee23..cd6c6771cf1599cbd630edbb90c8caa825a81ff4 100644
--- a/chrome/browser/ui/views/login_view.cc
+++ b/chrome/browser/ui/views/login_view.cc
@@ -89,11 +89,11 @@ LoginView::~LoginView() {
}
base::string16 LoginView::GetUsername() {
- return username_field_->text();
+ return username_field_->GetText();
}
base::string16 LoginView::GetPassword() {
- return password_field_->text();
+ return password_field_->GetText();
}
views::View* LoginView::GetInitiallyFocusedView() {
@@ -105,7 +105,7 @@ views::View* LoginView::GetInitiallyFocusedView() {
void LoginView::OnAutofillDataAvailable(const base::string16& username,
const base::string16& password) {
- if (username_field_->text().empty()) {
+ if (username_field_->GetText().empty()) {
username_field_->SetText(username);
password_field_->SetText(password);
username_field_->SelectAll(true);

Powered by Google App Engine
This is Rietveld 408576698