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

Unified Diff: chrome/browser/chromeos/options/passphrase_textfield.cc

Issue 308933002: Fix PassphraseTextfield::OnFocus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8267edf5046678cbe4c96755cd855b3eb2b0112a..cea7ffad1c17d24ae4f9adfc34cf4524c8ec89a0 100644
--- a/chrome/browser/chromeos/options/passphrase_textfield.cc
+++ b/chrome/browser/chromeos/options/passphrase_textfield.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/chromeos/options/passphrase_textfield.h"
#include "base/strings/utf_string_conversions.h"
+#include "ui/views/ime/input_method.h"
namespace chromeos {
@@ -28,6 +29,7 @@ void PassphraseTextfield::OnFocus() {
if (show_fake_ && !changed_)
ClearFakePassphrase();
Textfield::OnFocus();
+ GetInputMethod()->OnFocus();
}
void PassphraseTextfield::OnBlur() {
@@ -35,6 +37,7 @@ void PassphraseTextfield::OnBlur() {
if (show_fake_ && text().empty())
SetFakePassphrase();
Textfield::OnBlur();
+ GetInputMethod()->OnFocus();
}
std::string PassphraseTextfield::GetPassphrase() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698