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

Unified Diff: chromeos/dbus/power_policy_controller.h

Issue 2912763003: cros: Prevent shut down on lid-close during migration. (Closed)
Patch Set: revert unrelated change Created 3 years, 7 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: 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);
};

Powered by Google App Engine
This is Rietveld 408576698