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

Unified Diff: chrome/browser/chromeos/options/passphrase_textfield.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/chromeos/options/passphrase_textfield.cc
diff --git a/chrome/browser/chromeos/options/passphrase_textfield.cc b/chrome/browser/chromeos/options/passphrase_textfield.cc
index 3370336141690ae2a3dea2703fe415e40fd870b2..99ba9d99f987c7cfdb56e4b932afbd08e3617be1 100644
--- a/chrome/browser/chromeos/options/passphrase_textfield.cc
+++ b/chrome/browser/chromeos/options/passphrase_textfield.cc
@@ -31,13 +31,13 @@ void PassphraseTextfield::OnFocus() {
void PassphraseTextfield::OnBlur() {
// If password is not changed, then show the fake password when blurred.
- if (show_fake_ && text().empty())
+ if (show_fake_ && GetText().empty())
SetFakePassphrase();
Textfield::OnBlur();
}
std::string PassphraseTextfield::GetPassphrase() {
- return changed_ ? base::UTF16ToUTF8(text()) : std::string();
+ return changed_ ? base::UTF16ToUTF8(GetText()) : std::string();
}
void PassphraseTextfield::SetFakePassphrase() {

Powered by Google App Engine
This is Rietveld 408576698