-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make A.Suggester.OnSurroundingTextChanged async.
Make A.Suggester.OnSurroundingTextChanged async in order to allow it to use the lacros compatible "GetEnabledSuggestion" function. This function would have to get the current URL which in lacros is an async call through mojo. Currently A.Suggester OnSurroundingTextChanged is still disabled in lacros (https://crrev.com/c/3559412). For similar example see: AssistiveSuggester.OnExternalSuggestionsUpdated Unit tests now has extra coverage for different suggesters when Switch is disabled that didn't exist before and coverage of PersonalInfoSuggester for suggestion behaviours. minor changes: 1) aliased A.SuggesterSwitch::EnabledSuggestion for better readability 2) OnSurroundingTextChanged now returns void. The return value wasn't used in any call sites except in some tests, which has alternative ways of checking if the function was successful. The return value was ambiguous anyways so its not useful. Change-Id: I078fcc48fcf7d269c5521572b3867e8de6aeabb1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3551791 Reviewed-by: Curtis McMullan <curtismcmullan@chromium.org> Reviewed-by: Keith Lee <keithlee@chromium.org> Commit-Queue: jhtin <jhtin@chromium.org> Cr-Commit-Position: refs/heads/main@{#988347}
- Loading branch information
jhtin
authored and
Chromium LUCI CQ
committed
Apr 4, 2022
1 parent
030fd32
commit 911d8fb
Showing
3 changed files
with
163 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters