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

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

Issue 334573004: Fixes unittests with --enable-text-input-focus-manager flag enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed more unittests. Created 6 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/input_method_base.cc
diff --git a/ui/base/ime/input_method_base.cc b/ui/base/ime/input_method_base.cc
index 5391f5496e767dc57ce1d39046c82c045e4a3175..ed347670ef35d39d8d7de7818b7a28b40a1f9b8d 100644
--- a/ui/base/ime/input_method_base.cc
+++ b/ui/base/ime/input_method_base.cc
@@ -160,18 +160,18 @@ void InputMethodBase::OnCandidateWindowHidden() {
}
void InputMethodBase::CandidateWindowShownCallback() {
- if (text_input_client_)
- text_input_client_->OnCandidateWindowShown();
+ if (TextInputClient* text_input_client = GetTextInputClient())
+ text_input_client->OnCandidateWindowShown();
}
void InputMethodBase::CandidateWindowUpdatedCallback() {
- if (text_input_client_)
- text_input_client_->OnCandidateWindowUpdated();
+ if (TextInputClient* text_input_client = GetTextInputClient())
+ text_input_client->OnCandidateWindowUpdated();
}
void InputMethodBase::CandidateWindowHiddenCallback() {
- if (text_input_client_)
- text_input_client_->OnCandidateWindowHidden();
+ if (TextInputClient* text_input_client = GetTextInputClient())
+ text_input_client->OnCandidateWindowHidden();
}
} // namespace ui
« no previous file with comments | « chrome/browser/chromeos/input_method/textinput_test_helper.cc ('k') | ui/base/ime/input_method_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698