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

Unified Diff: chrome/browser/policy/proto/chromeos/chrome_device_policy.proto

Issue 18153007: Add policies to control power management on the Chrome OS login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/proto/chromeos/chrome_device_policy.proto
diff --git a/chrome/browser/policy/proto/chromeos/chrome_device_policy.proto b/chrome/browser/policy/proto/chromeos/chrome_device_policy.proto
index 65fe798869d85eab827cf573da5d429538554d75..81e219fea01fb58b01bd8e9d85fa62bcd5dff067 100644
--- a/chrome/browser/policy/proto/chromeos/chrome_device_policy.proto
+++ b/chrome/browser/policy/proto/chromeos/chrome_device_policy.proto
@@ -413,6 +413,84 @@ message SupervisedUsersSettingsProto {
optional bool supervised_users_enabled = 1;
}
+message PowerManagementProto {
+ // Specifies the length of time without user activity after which the screen
+ // is dimmed when the login screen is being shown and the device is running on
+ // AC power. When this policy is set to zero, the screen is never dimmed. When
+ // this policy is unset, a default length of time is used. The policy value
+ // should be specified in milliseconds. Values are clamped to be less than or
+ // equal the screen off delay (if set) and the idle delay.
+ optional int64 login_screen_screen_dim_delay_ac = 1;
+
+ // Specifies the length of time without user activity after which the screen
+ // is turned off when the login screen is being shown and the device is
+ // running on AC power. When this policy is set to zero, the screen is never
+ // turned off. When this policy is unset, a default length of time is used.
+ // The policy value should be specified in milliseconds. Values are clamped to
+ // be less than or equal the idle delay.
+ optional int64 login_screen_screen_off_delay_ac = 2;
+
+ // Specifies the length of time without user activity after which the idle
+ // action is taken when the login screen is being shown and the device is
+ // running on AC power. When this policy is unset, a default length of time is
+ // used. The policy value should be specified in milliseconds.
+ optional int64 login_screen_idle_delay_ac = 3;
+
+ // Specifies the length of time without user activity after which the screen
+ // is dimmed when the login screen is being shown and the device is running on
+ // battery power. When this policy is set to zero, the screen is never dimmed.
+ // When this policy is unset, a default length of time is used. The policy
+ // value should be specified in milliseconds. Values are clamped to be less
+ // than or equal the screen off delay (if set) and the idle delay.
+ optional int64 login_screen_screen_dim_delay_battery = 4;
+
+ // Specifies the length of time without user activity after which the screen
+ // is turned off when the login screen is being shown and the device is
+ // running on battery power. When this policy is set to zero, the screen is
+ // never turned off. When this policy is unset, a default length of time is
+ // used. The policy value should be specified in milliseconds. Values are
+ // clamped to be less than or equal the idle delay.
+ optional int64 login_screen_screen_off_delay_battery = 5;
+
+ // Specifies the length of time without user activity after which the idle
+ // action is taken when the login screen is being shown and the device is
+ // running on battery power. When this policy is unset, a default length of
+ // time is used. The policy value should be specified in milliseconds.
+ optional int64 login_screen_idle_delay_battery = 6;
+
+ // Enumerates the power management actions possible on the login screen.
+ enum PowerManagementAction {
+ // Suspend the device.
+ ACTION_SUSPEND = 0;
+ // Shut down the device.
+ ACTION_SHUT_DOWN = 2;
+ // Do nothing.
+ ACTION_DO_NOTHING = 3;
+ };
+
+ // Specifies the action to take when the idle delay is reached while the login
+ // screen is being shown and the device is running on AC power. When this
+ // policy is unset, the default action is taken, which is suspend.
+ optional PowerManagementAction login_screen_idle_action_ac = 7;
+
+ // Specifies the action to take when the idle delay is reached while the login
+ // screen is being shown and the device is running on battery power. When this
+ // policy is unset, the default action is taken, which is shut down.
+ optional PowerManagementAction login_screen_idle_action_battery = 8;
+
+ // Specifies the action to take when the user closes the lid while the login
+ // screen is being shown. When this policy is unset, the default action is
+ // taken, which is shut down.
+ optional PowerManagementAction login_screen_lid_close_action = 9;
+
+ // Specifies the percentage by which the screen dim delay is scaled when user
+ // activity is observed while the screen is dimmed or soon after the screen
+ // has been turned off while the login screen is being shown. If this policy
+ // is unset, a default scale factor is used. The policy value is specified in
+ // percent and must be at least 100.
+ optional int64 login_screen_user_activity_screen_dim_delay_scale = 10;
+}
+
message ChromeDeviceSettingsProto {
optional DevicePolicyRefreshRateProto device_policy_refresh_rate = 1;
optional UserWhitelistProto user_whitelist = 2;
@@ -442,4 +520,5 @@ message ChromeDeviceSettingsProto {
optional AttestationSettingsProto attestation_settings = 26;
optional AccessibilitySettingsProto accessibility_settings = 27;
optional SupervisedUsersSettingsProto supervised_users_settings = 28;
+ optional PowerManagementProto power_management = 29;
}

Powered by Google App Engine
This is Rietveld 408576698