Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Issue 417103003: Retrieve the list of keyboard layouts for public sessions async (Closed)

Created:
6 years, 4 months ago by bartfab (slow)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, jshin+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Retrieve 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -55 lines) Patch
M chrome/browser/chromeos/login/screens/user_selection_screen.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/l10n_util.h View 2 chunks +16 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/l10n_util.cc View 1 2 8 chunks +76 lines, -33 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 2 chunks +11 lines, -3 lines 0 comments Download
M ui/login/account_picker/user_pod_row.js View 1 2 3 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
bartfab (slow)
Hi Pavel, Could you take a look?
6 years, 4 months ago (2014-07-25 16:07:11 UTC) #1
bartfab (slow)
Hi Pavel, Friendly review ping.
6 years, 4 months ago (2014-07-29 12:43:54 UTC) #2
dzhioev (left Google)
LGTM Alexander, can you please take a look?
6 years, 4 months ago (2014-07-29 18:37:32 UTC) #3
Nikita (slow)
https://codereview.chromium.org/417103003/diff/20001/chrome/browser/ui/webui/chromeos/login/l10n_util.cc File chrome/browser/ui/webui/chromeos/login/l10n_util.cc (right): https://codereview.chromium.org/417103003/diff/20001/chrome/browser/ui/webui/chromeos/login/l10n_util.cc#newcode445 chrome/browser/ui/webui/chromeos/login/l10n_util.cc:445: content::BrowserThread::FILE, FILE thread is deprecated https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/OaA-9rnjOqI
6 years, 4 months ago (2014-07-30 12:08:47 UTC) #4
bartfab (slow)
https://codereview.chromium.org/417103003/diff/20001/chrome/browser/ui/webui/chromeos/login/l10n_util.cc File chrome/browser/ui/webui/chromeos/login/l10n_util.cc (right): https://codereview.chromium.org/417103003/diff/20001/chrome/browser/ui/webui/chromeos/login/l10n_util.cc#newcode445 chrome/browser/ui/webui/chromeos/login/l10n_util.cc:445: content::BrowserThread::FILE, On 2014/07/30 12:08:47, Nikita Kostylev wrote: > FILE ...
6 years, 4 months ago (2014-07-30 12:55:17 UTC) #5
Alexander Alekseev
lgtm
6 years, 4 months ago (2014-07-30 14:34:02 UTC) #6
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 4 months ago (2014-07-30 14:34:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/417103003/40001
6 years, 4 months ago (2014-07-30 14:35:48 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-07-30 17:32:03 UTC) #9
bartfab (slow)
6 years, 4 months ago (2014-07-30 19:04:44 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as r286571 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698