DescriptionRetrieve the list of keyboard layouts for public sessions async
CL 398543002 introduced a GetKeyboardLayoutsForLocale() method that
synchronous resolves the requested locale to an actually available UI
locale and returns the keyboard layouts available for it. However,
resolving a locale requires file I/O, which is not allowed on the UI
thread. This led to DCHECK failures.
This CL makes GetKeyboardLayoutsForLocale() asynchronous. It first
resolves the locale on a background thread and then retrieves the list
of keyboard layouts for it on the UI thread.
BUG=241790
TEST=Debug build no longer DCHECKs when choosing public session locale
R=alemate@chromium.org, dzhioev@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286571
Patch Set 1 #Patch Set 2 : Rebased. #
Total comments: 2
Patch Set 3 : Use blocking pool instead of FILE thread. #
Messages
Total messages: 10 (0 generated)
|