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

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

Issue 113940: Make Textfield more portable.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/views/find_bar_view.cc ('k') | chrome/browser/views/options/cookies_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/login_view.cc
===================================================================
--- chrome/browser/views/login_view.cc (revision 17056)
+++ chrome/browser/views/login_view.cc (working copy)
@@ -83,11 +83,11 @@
}
std::wstring LoginView::GetUsername() {
- return username_field_->GetText();
+ return username_field_->text();
}
std::wstring LoginView::GetPassword() {
- return password_field_->GetText();
+ return password_field_->text();
}
void LoginView::SetModel(LoginModel* model) {
@@ -107,7 +107,7 @@
void LoginView::OnAutofillDataAvailable(const std::wstring& username,
const std::wstring& password) {
- if (username_field_->GetText().empty()) {
+ if (username_field_->text().empty()) {
username_field_->SetText(username);
password_field_->SetText(password);
username_field_->SelectAll();
« no previous file with comments | « chrome/browser/views/find_bar_view.cc ('k') | chrome/browser/views/options/cookies_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698