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

Issue 426063005: Allow recommended locales to be set for public sessions (Closed)

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

Description

Allow recommended locales to be set for public sessions This CL introduces the |SessionLocales| policy that can be used to recommend one or more UI locales for a public session. If the policy is set, the first recommended locale is pre-selected when starting a public session. If more than one locale is recommended, the public session pod is shown in its advanced form, highlighting the availability of language and keyboard layout pickers. The keyboard layout is automatically set to the most popular layout matching the UI locale. This CL also fixes the flaky DeviceLocalAccountTest.* and TermsOfServiceDownloadTest.Ü. BUG=214904, 241790, 401010 TEST=Extensive browser test coverage, including picker UI Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287767

Patch Set 1 #

Total comments: 58

Patch Set 2 : Rebased. #

Patch Set 3 : Addressed comments. #

Patch Set 4 : Fix buffer overflow in test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1062 lines, -202 lines) Patch
M chrome/browser/chromeos/login/app_launch_signin_screen.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.h View 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 6 chunks +91 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/chrome_user_selection_screen.cc View 1 2 4 chunks +88 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/user_selection_screen.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screens/user_selection_screen.cc View 1 2 7 chunks +67 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 37 chunks +557 lines, -122 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/l10n_util.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen_handler.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 1 chunk +5 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 2 chunks +35 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download
M ui/login/account_picker/screen_account_picker.js View 1 2 chunks +23 lines, -2 lines 0 comments Download
M ui/login/account_picker/user_pod_row.js View 1 2 6 chunks +111 lines, -38 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
bartfab (slow)
This is the final CL that wires up the public session locale policy. Hi Nikita, ...
6 years, 4 months ago (2014-07-30 00:41:57 UTC) #1
Nikita (slow)
lgtm with nits https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/login/app_launch_signin_screen.cc File chrome/browser/chromeos/login/app_launch_signin_screen.cc (right): https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/login/app_launch_signin_screen.cc#newcode203 chrome/browser/chromeos/login/app_launch_signin_screen.cc:203: *it, true, false, initial_auth_type, NULL, user_dict); ...
6 years, 4 months ago (2014-07-30 11:22:59 UTC) #2
pneubeck (no reviews)
lgtm https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File chrome/browser/chromeos/policy/device_local_account_browsertest.cc (right): https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc#newcode620 chrome/browser/chromeos/policy/device_local_account_browsertest.cc:620: ASSERT_TRUE(wizard_controller); just FYI: ASSERTs in functions only skip ...
6 years, 4 months ago (2014-07-30 15:23:19 UTC) #3
pneubeck (no reviews)
https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File chrome/browser/chromeos/policy/device_local_account_browsertest.cc (right): https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc#newcode1344 chrome/browser/chromeos/policy/device_local_account_browsertest.cc:1344: IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, NoRecommendedLocale) { is this case different from no ...
6 years, 4 months ago (2014-07-30 15:39:24 UTC) #4
pneubeck (no reviews)
IMO, the browser test is already very thorough. lgtm (no for real ;-) https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/policy/device_local_account_browsertest.cc File ...
6 years, 4 months ago (2014-07-30 17:55:44 UTC) #5
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 4 months ago (2014-07-31 08:54:17 UTC) #6
bartfab (slow)
The CQ bit was unchecked by bartfab@chromium.org
6 years, 4 months ago (2014-07-31 08:56:11 UTC) #7
bartfab (slow)
Hi Alexei, Ping about histograms.xml.
6 years, 4 months ago (2014-08-05 11:26:32 UTC) #8
Alexei Svitkine (slow)
lgtm, sorry for the delay
6 years, 4 months ago (2014-08-05 14:24:23 UTC) #9
bartfab (slow)
https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/login/app_launch_signin_screen.cc File chrome/browser/chromeos/login/app_launch_signin_screen.cc (right): https://codereview.chromium.org/426063005/diff/1/chrome/browser/chromeos/login/app_launch_signin_screen.cc#newcode203 chrome/browser/chromeos/login/app_launch_signin_screen.cc:203: *it, true, false, initial_auth_type, NULL, user_dict); On 2014/07/30 11:22:59, ...
6 years, 4 months ago (2014-08-05 17:16:25 UTC) #10
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 4 months ago (2014-08-05 17:16:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/426063005/40001
6 years, 4 months ago (2014-08-05 17:17:26 UTC) #12
bartfab (slow)
The CQ bit was unchecked by bartfab@chromium.org
6 years, 4 months ago (2014-08-05 19:18:23 UTC) #13
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 4 months ago (2014-08-05 19:18:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/426063005/40001
6 years, 4 months ago (2014-08-05 19:19:29 UTC) #15
bartfab (slow)
Committed patchset #3 manually as 287581 (presubmit successful).
6 years, 4 months ago (2014-08-05 19:58:31 UTC) #16
robliao
On 2014/08/05 19:58:31, bartfab wrote: > Committed patchset #3 manually as 287581 (presubmit successful). Reverted ...
6 years, 4 months ago (2014-08-05 23:10:45 UTC) #17
jam
On 2014/08/05 23:10:45, robliao wrote: > On 2014/08/05 19:58:31, bartfab wrote: > > Committed patchset ...
6 years, 4 months ago (2014-08-06 02:08:37 UTC) #18
bartfab (slow)
On 2014/08/06 02:08:37, jam wrote: > On 2014/08/05 23:10:45, robliao wrote: > > On 2014/08/05 ...
6 years, 4 months ago (2014-08-06 10:03:51 UTC) #19
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 4 months ago (2014-08-06 10:12:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/426063005/60001
6 years, 4 months ago (2014-08-06 10:12:47 UTC) #21
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 13:08:07 UTC) #22
Message was sent while issue was closed.
Change committed as 287767

Powered by Google App Engine
This is Rietveld 408576698