Commit c2ab1176 authored by Leo Zhang's avatar Leo Zhang Committed by Commit Bot

Fix the response check.

Response from Mojo service is a dict with success as its key, which
is defined in input_engine.mojom under chromeos/services/ime

Bug: 837156
Change-Id: Ie33c5aaed27c3de8b995b8455b65074b6bbe2cba
Reviewed-on: https://chromium-review.googlesource.com/c/1460656Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Commit-Queue: Leo Zhang <googleo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630695}
parent 27a2c3e8
...@@ -255,7 +255,8 @@ class ImeService { ...@@ -255,7 +255,8 @@ class ImeService {
.connectToImeEngine( .connectToImeEngine(
imeSpec, mojo.makeRequest(this.activeEngine_), imeSpec, mojo.makeRequest(this.activeEngine_),
this.clientChannel_.getChannelPtr(), extra) this.clientChannel_.getChannelPtr(), extra)
.then((bound) => { .then((result) => {
const bound = result && result['success'];
if (bound && onConnectionError) { if (bound && onConnectionError) {
this.activeEngine_.ptr.setConnectionErrorHandler( this.activeEngine_.ptr.setConnectionErrorHandler(
onConnectionError); onConnectionError);
......
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