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

Unified Diff: chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc

Issue 11777010: Set NULL if before releasing IBusUiController instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add condition check for testing Created 7 years, 11 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/input_method/candidate_window_controller_impl.cc
diff --git a/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc b/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc
index 0462400aa284f9068a4a09d52e64dcc59e4ebf19..360e2ff8f4281538a18568844bd78e0706ceea2e 100644
--- a/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc
+++ b/chrome/browser/chromeos/input_method/candidate_window_controller_impl.cc
@@ -102,6 +102,9 @@ CandidateWindowControllerImpl::CandidateWindowControllerImpl()
}
CandidateWindowControllerImpl::~CandidateWindowControllerImpl() {
+ if (DBusThreadManager::Get()->GetIBusPanelService())
+ DBusThreadManager::Get()->GetIBusPanelService()->
+ SetUpCandidateWindowHandler(NULL);
ibus_ui_controller_->RemoveObserver(this);
candidate_window_->RemoveObserver(this);
// ibus_ui_controller_'s destructor will close the connection.
« 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