|
Add login screen locale and input method device policies
This CL introduces two device policies for Chrome OS:
+ DeviceLoginScreenLocales
Mandates a specific locale for the login screen.
(Note that the policy value is a list for future compatibility, in
case dynamically switching login screen locales is implemented in the
future. Currently only the first value is used).
+ DeviceLoginScreenInputMethods
Enforces input methods on the login screen.
This is done by:
Locale:
- Introducing cros setting kDeviceLoginScreenLocales, controlled by the new policy
- Applying Login Screen locale before login screen is displayed
- Pre-setting kApplicationLocale on application exit for the next run
Input Methods:
- Introducing cros setting kDeviceLoginScreenInputMethods, controlled by the new policy
- new method SetAllowedKeyboardLayoutInputMethods on InputMethodManager to restrict input methods
- enforcing keyboard layouts (through InputMethodManager) on sign-in screen (depending on which user's fod is focused)
- adding info to the tray icon to display that input methods are controlled by policy
See go/cros-locale-input-policy-dd for more detail.
BUG= 373324
TEST=New browser_tests, new unit_tests, manual test with YAPS.
Review-Url: https://codereview.chromium.org/2652793003
Cr-Commit-Position: refs/heads/master@{#448961}
Committed: https://chromium.googlesource.com/chromium/src/+/8c3ffb5e698796da543bcbf2192bbb5aebb90807
Total comments: 14
Total comments: 4
Total comments: 4
Total comments: 9
Total comments: 8
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+734 lines, -88 lines) |
Patch |
|
M |
ash/common/system/ime/tray_ime_chromeos.h
|
View
|
1
|
3 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
ash/common/system/ime/tray_ime_chromeos.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
11 chunks |
+51 lines, -9 lines |
0 comments
|
Download
|
|
M |
ash/common/system/ime/tray_ime_chromeos_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
ash/common/system/tray/system_tray_delegate.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
ash/common/system/tray/system_tray_delegate.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/input_method/input_method_manager_impl.h
|
View
|
1
2
3
4
5
|
3 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/input_method/input_method_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+64 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+92 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/login/login_screen_policy_browsertest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+92 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/login/ui/login_display_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
9 chunks |
+90 lines, -34 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
|
View
|
1
2
3
|
3 chunks |
+50 lines, -27 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/policy/proto/chrome_device_policy.proto
|
View
|
|
2 chunks |
+12 lines, -0 lines |
4 comments
|
Download
|
|
M |
chrome/browser/chromeos/settings/device_settings_provider.cc
|
View
|
1
2
3
|
2 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/lifetime/application_lifetime.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+32 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
View
|
1
2
3
4
5
6
7
8
|
8 chunks |
+60 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/signin/user_manager_screen_handler.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/test/data/policy/policy_test_cases.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chromeos/settings/cros_settings_names.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chromeos/settings/cros_settings_names.cc
|
View
|
1
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/policy/resources/policy_templates.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+43 lines, -1 line |
0 comments
|
Download
|
|
M |
tools/metrics/histograms/histograms.xml
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/base/ime/chromeos/input_method_manager.h
|
View
|
1
2
3
4
5
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/base/ime/chromeos/mock_input_method_manager.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/base/ime/chromeos/mock_input_method_manager.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/login/account_picker/user_pod_row.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 37 (11 generated)
|