rule-based: Use native code for activating/deactivating engine.
<This change is hidden behind a flag> As part of migrating PK rule-based IMEs to native code, this CL migrates activate/deactivate to native code path. We port RuleBasedController#onActivate/onDeactivate in chos/pk/rulebasedcontroller.js. Note that we need these to call through to the extension, as it has side effects that may affect the extension when it is running (e.g. when VK is up). We also added a bunch of metrics collection that was in the extension code. Note that the JS code has already been guarded by the runtime flag. Bug: 1009903 Change-Id: Ib72ea3916d6f66c17c6553a7f137e1eb1647e181 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1970294 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by:Shu Chen <shuchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#726174}
Showing
Please register or sign in to comment