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

Unified Diff: ui/base/ime/mock_input_method.cc

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed bot failure: cast_shell_linux 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/base/ime/mock_input_method.cc
diff --git a/ui/base/ime/mock_input_method.cc b/ui/base/ime/mock_input_method.cc
index 1ea12039484fb3edd0a8b7c181d7d6918876f9d2..340c0d6da6056c28fb80dbbadfb66f3fd1554bfa 100644
--- a/ui/base/ime/mock_input_method.cc
+++ b/ui/base/ime/mock_input_method.cc
@@ -14,6 +14,8 @@ MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate)
}
MockInputMethod::~MockInputMethod() {
+ FOR_EACH_OBSERVER(InputMethodObserver, observer_list_,
+ OnInputMethodDestroyed(this));
}
void MockInputMethod::SetDelegate(internal::InputMethodDelegate* delegate) {

Powered by Google App Engine
This is Rietveld 408576698