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

Unified Diff: components/arc/ime/arc_ime_service.cc

Issue 2709113002: Remove ArcImeService from window observers on shutdown (Closed)
Patch Set: Created 3 years, 10 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: components/arc/ime/arc_ime_service.cc
diff --git a/components/arc/ime/arc_ime_service.cc b/components/arc/ime/arc_ime_service.cc
index c658587d27aaaf71920bbe071e8ba94a2e379892..9259f31aad29e083415249ddb1dc897270a5f615 100644
--- a/components/arc/ime/arc_ime_service.cc
+++ b/components/arc/ime/arc_ime_service.cc
@@ -74,6 +74,8 @@ ArcImeService::~ArcImeService() {
if (input_method)
input_method->DetachTextInputClient(this);
+ if (focused_arc_window_)
+ focused_arc_window_->RemoveObserver(this);
if (is_focus_observer_installed_)
arc_window_delegate_->UnregisterFocusObserver();
aura::Env* env = aura::Env::GetInstanceDontCreate();
« 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