Commit a04ab84e authored by nona@chromium.org's avatar nona@chromium.org

Fix candidate window initialization.

OnConnected/OnDisconnected observer callback is not meaning anything on
chromeos=1 build, so it calles automatically at the begging of input method
initialization.
However it is too early for CandidateWindowController to do initialization in
OnConnected, so do initialization immediately if it is available.

BUG=244322
TEST=Manually checked on ubuntu

Review URL: https://chromiumcodereview.appspot.com/15974003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202592 0039d316-1c4b-4281-b951-d872f2087c98
parent 7fde24af
...@@ -44,6 +44,10 @@ IBusPanelService* GetIBusPanelService() { ...@@ -44,6 +44,10 @@ IBusPanelService* GetIBusPanelService() {
} // namespace } // namespace
bool CandidateWindowControllerImpl::Init() { bool CandidateWindowControllerImpl::Init() {
if (DBusThreadManager::Get()->GetIBusPanelService()) {
DBusThreadManager::Get()->GetIBusPanelService()->
SetUpCandidateWindowHandler(this);
}
IBusDaemonController::GetInstance()->AddObserver(this); IBusDaemonController::GetInstance()->AddObserver(this);
// Create the candidate window view. // Create the candidate window view.
CreateView(); CreateView();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment