Commit c73b51e5 authored by Curtis McMullan's avatar Curtis McMullan Committed by Chromium LUCI CQ

cros-suggest: add feature flag to ime service

Make the assistive multi word suggestions flag available to the IME
service.

Bug: 1146266
Change-Id: Iba1f3c15ea8386fe3374f2ed45454616c49ca15a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580640Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Commit-Queue: Curtis McMullan <curtismcmullan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#835095}
parent 9d5aa289
......@@ -105,6 +105,9 @@ void ImeService::RunInMainSequence(ImeSequencedTask task, int task_id) {
}
bool ImeService::IsFeatureEnabled(const char* feature_name) {
if (strcmp(feature_name, "AssistiveMultiWord") == 0) {
return base::FeatureList::IsEnabled(chromeos::features::kAssistMultiWord);
}
if (strcmp(feature_name, "SystemLatinPhysicalTyping") == 0) {
return base::FeatureList::IsEnabled(
chromeos::features::kSystemLatinPhysicalTyping);
......
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