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

Unified Diff: ui/views/controls/prefix_selector.cc

Issue 1177503003: Remove the 2-level input method system & InputMethodBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 6 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: ui/views/controls/prefix_selector.cc
diff --git a/ui/views/controls/prefix_selector.cc b/ui/views/controls/prefix_selector.cc
index f7e8f66fa833828cf983972e85d568a92445b2f4..b731b2b1d543b2d29716a9b9c97f8a8eae40bf6e 100644
--- a/ui/views/controls/prefix_selector.cc
+++ b/ui/views/controls/prefix_selector.cc
@@ -5,6 +5,7 @@
#include "ui/views/controls/prefix_selector.h"
#include "base/i18n/case_conversion.h"
+#include "ui/base/ime/input_method.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/gfx/range/range.h"
#include "ui/views/controls/prefix_delegate.h"
@@ -31,6 +32,9 @@ PrefixSelector::PrefixSelector(PrefixDelegate* delegate)
}
PrefixSelector::~PrefixSelector() {
+ ui::InputMethod* input_method = prefix_delegate_->GetInputMethod();
sky 2015/06/29 02:17:41 How come PrefixSelector has to detach, but not att
Shu Chen 2015/06/29 02:56:34 Done.
+ if (input_method)
+ input_method->DetachTextInputClient(this);
}
void PrefixSelector::OnViewBlur() {

Powered by Google App Engine
This is Rietveld 408576698