Add policies to control power management on the Chrome OS login screen
commit2424cc519cb55267d8209519750436d875da43b6
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 17 Jul 2013 13:44:38 +0000 (17 13:44 +0000)
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 17 Jul 2013 13:44:38 +0000 (17 13:44 +0000)
tree2bf523654246474b796e32755df164a538dddf10
parent6192505d8a12237ce95a49e2d4697a71f54e847a
Add policies to control power management on the Chrome OS login screen

This CL adds a device policy that controls power management on the login
screen. Before this CL, powerd controlled power policy on the login screen,
always using built-in defaults. After this CL, Chrome contols power policy
by explicitly sending it to powerd whenever the login screen is shown. The
built-in defaults match those that powerd used to have but they can now be
overridden through device policy.

BUG=241794
TEST=Full coverage with new unit and broweser tests

Review URL: https://chromiumcodereview.appspot.com/18153007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212024 0039d316-1c4b-4281-b951-d872f2087c98
35 files changed:
chrome/app/generated_resources.grd
chrome/app/policy/policy_templates.json
chrome/browser/chromeos/chrome_browser_main_chromeos.cc
chrome/browser/chromeos/chrome_browser_main_chromeos.h
chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc
chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
chrome/browser/chromeos/policy/configuration_policy_handler_chromeos_unittest.cc
chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc
chrome/browser/chromeos/policy/login_profile_policy_provider.cc
chrome/browser/chromeos/policy/login_profile_policy_provider.h
chrome/browser/chromeos/policy/login_screen_power_management_policy.cc [new file with mode: 0644]
chrome/browser/chromeos/policy/login_screen_power_management_policy.h [new file with mode: 0644]
chrome/browser/chromeos/policy/login_screen_power_management_policy_unittest.cc [new file with mode: 0644]
chrome/browser/chromeos/policy/power_policy_browsertest.cc
chrome/browser/chromeos/power/power_prefs.cc [new file with mode: 0644]
chrome/browser/chromeos/power/power_prefs.h [new file with mode: 0644]
chrome/browser/chromeos/power/power_prefs_unittest.cc [new file with mode: 0644]
chrome/browser/chromeos/preferences.cc
chrome/browser/chromeos/preferences.h
chrome/browser/policy/configuration_policy_handler.cc
chrome/browser/policy/configuration_policy_handler.h
chrome/browser/policy/configuration_policy_handler_list.cc
chrome/browser/policy/mock_policy_service.cc
chrome/browser/policy/mock_policy_service.h
chrome/browser/policy/policy_service_impl_unittest.cc
chrome/browser/policy/proto/chromeos/chrome_device_policy.proto
chrome/browser/prefs/browser_prefs.cc
chrome/chrome_browser_chromeos.gypi
chrome/chrome_tests.gypi
chrome/chrome_tests_unit.gypi
chrome/test/base/testing_profile_manager.cc
chrome/test/base/testing_profile_manager.h
chrome/test/data/policy/policy_test_cases.json
chromeos/dbus/power_policy_controller.cc
chromeos/dbus/power_policy_controller.h