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

Unified Diff: views/widget/widget.cc

Issue 7746005: Focus fix. InputMethod needs to be initialized before calling OnFocus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 4 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 | « views/widget/native_widget_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.cc
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 45423c6d40fa633753d1b3be05d21f06acc15712..d6550d8d057d05ee5ef4a0977c6f8955247f8764 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -598,7 +598,7 @@ FocusManager* Widget::GetFocusManager() {
InputMethod* Widget::GetInputMethod() {
if (is_top_level()) {
if (!input_method_.get())
- ReplaceInputMethod(native_widget_->CreateInputMethod());
+ input_method_.reset(native_widget_->CreateInputMethod());
return input_method_.get();
} else {
Widget* toplevel = GetTopLevelWidget();
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698