Index: chromeos/dbus/power_policy_controller.h |
diff --git a/chromeos/dbus/power_policy_controller.h b/chromeos/dbus/power_policy_controller.h |
index 3d89a23a409108b920b107812027cd2057081627..530360ff0c7299ee8f83c981ce76d517c966db09 100644 |
--- a/chromeos/dbus/power_policy_controller.h |
+++ b/chromeos/dbus/power_policy_controller.h |
@@ -112,6 +112,12 @@ class CHROMEOS_EXPORT PowerPolicyController |
// down. |
void NotifyChromeIsExiting(); |
+ // Adjusts policy when the migration of a user homedir to a new |
+ // encryption format starts or stops. While migration is active, |
+ // the lid-closed action is overridden to ensure the system |
+ // doesn't shut down. |
+ void SetEncryptionMigrationActive(bool active); |
+ |
// PowerManagerClient::Observer implementation: |
void PowerManagerRestarted() override; |
@@ -173,6 +179,9 @@ class CHROMEOS_EXPORT PowerPolicyController |
// True if Chrome is in the process of exiting. |
bool chrome_is_exiting_; |
+ // True if a user homedir is in the process of migrating encryption formats. |
+ bool encryption_migration_active_; |
+ |
DISALLOW_COPY_AND_ASSIGN(PowerPolicyController); |
}; |