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

Issue 16658015: Add device policies to control accessibility settings on the login screen (Closed)

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

Description

Add device policies to control accessibility settings on the login screen This CL adds device policies that provide control over the default state of the following four accessibility settings on the login screen: * Large cursor * Spoken feedback * High contrast mode * Screen magnifier type The User can temporarily override the settings but the defaults are restored whenever the login screen is shown anew or the user remains idle on the login screen for one minute. BUG=225955, 225956, 243350, 247298 TEST=New unittests + new browsertests + manual in VM Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207755 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207889

Patch Set 1 #

Patch Set 2 : Style fix. #

Patch Set 3 : Fix copy&paste mistake found by clang. #

Total comments: 36

Patch Set 4 : Comments addressed. #

Patch Set 5 : Simplified. The timer is now used to handle all pref value changes. #

Patch Set 6 : Rebaased. #

Total comments: 6

Patch Set 7 : Nits addressed. #

Patch Set 8 : Fixed leaky tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1766 lines, -69 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 2 chunks +102 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 4 5 3 chunks +2 lines, -27 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_cros_browser_test.h View 1 2 3 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc View 1 2 3 3 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc View 1 2 3 4 5 2 chunks +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/login_profile_policy_provider.h View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/login_profile_policy_provider.cc View 1 2 3 1 chunk +114 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc View 1 2 3 4 5 6 1 chunk +438 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/recommendation_restorer.h View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/recommendation_restorer.cc View 1 2 3 4 5 6 1 chunk +144 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/recommendation_restorer_factory.h View 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/recommendation_restorer_factory.cc View 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +485 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler.cc View 1 2 3 5 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/policy/profile_policy_connector.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/policy/profile_policy_connector.cc View 1 2 3 4 5 6 chunks +18 lines, -14 lines 0 comments Download
M chrome/browser/policy/proto/chromeos/chrome_device_policy.proto View 2 chunks +62 lines, -0 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_model_unittest.cc View 10 chunks +30 lines, -14 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller_unittest.mm View 1 2 3 4 5 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/testing_profile_manager.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile_manager.cc View 4 chunks +11 lines, -3 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
bartfab (slow)
Hi Mattias, Could you review the policy part of this CL (essentially, all of it)? ...
7 years, 6 months ago (2013-06-11 23:26:24 UTC) #1
sky
testing_profile_manager LGTM
7 years, 6 months ago (2013-06-11 23:33:37 UTC) #2
sail
profiles/* LGTM
7 years, 6 months ago (2013-06-12 00:05:17 UTC) #3
Mattias Nissler (ping if slow)
I think the general approach with the new policy provider is rather neat. Some hiccups ...
7 years, 6 months ago (2013-06-12 13:55:16 UTC) #4
bartfab (slow)
> One thing I don't fully grok is why you > need these TestingProfile changes? ...
7 years, 6 months ago (2013-06-12 18:57:49 UTC) #5
Mattias Nissler (ping if slow)
Still not convinced about the double bookkeeping on recommended pref values. Feel free to catch ...
7 years, 6 months ago (2013-06-13 18:11:45 UTC) #6
bartfab (slow)
On 2013/06/13 18:11:45, Mattias Nissler wrote: > Still not convinced about the double bookkeeping on ...
7 years, 6 months ago (2013-06-20 08:40:57 UTC) #7
bartfab (slow)
Hi Mattias, PTAL. I modified the implementation as discussed over IM. I would still love ...
7 years, 6 months ago (2013-06-20 08:43:30 UTC) #8
Mattias Nissler (ping if slow)
LGTM with nits. https://chromiumcodereview.appspot.com/16658015/diff/58001/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc File chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc (right): https://chromiumcodereview.appspot.com/16658015/diff/58001/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc#newcode41 chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc:41: em::AccessibilitySettingsProto_ScreenMagnifierType_SCREEN_MAGNIFIER_TYPE_FULL; nit: indentation https://chromiumcodereview.appspot.com/16658015/diff/58001/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc#newcode202 chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc:202: ::VerifyPrefFollowsRecommendation( ...
7 years, 6 months ago (2013-06-20 18:42:10 UTC) #9
bartfab (slow)
https://chromiumcodereview.appspot.com/16658015/diff/58001/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc File chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc (right): https://chromiumcodereview.appspot.com/16658015/diff/58001/chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc#newcode41 chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc:41: em::AccessibilitySettingsProto_ScreenMagnifierType_SCREEN_MAGNIFIER_TYPE_FULL; On 2013/06/20 18:42:10, Mattias Nissler wrote: > nit: ...
7 years, 6 months ago (2013-06-20 19:35:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/16658015/78001
7 years, 6 months ago (2013-06-20 19:37:19 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-20 20:59:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/16658015/78001
7 years, 6 months ago (2013-06-20 23:41:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/16658015/78001
7 years, 6 months ago (2013-06-21 01:05:48 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/16658015/78001
7 years, 6 months ago (2013-06-21 08:18:25 UTC) #15
commit-bot: I haz the power
Change committed as 207755
7 years, 6 months ago (2013-06-21 08:48:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/16658015/102001
7 years, 6 months ago (2013-06-21 15:28:01 UTC) #17
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 18:41:54 UTC) #18
Message was sent while issue was closed.
Change committed as 207889

Powered by Google App Engine
This is Rietveld 408576698