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

Unified Diff: chromeos/dbus/power_policy_controller.h

Issue 2912763003: cros: Prevent shut down on lid-close during migration. (Closed)
Patch Set: 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..7687a017537fa3cda7daa0e89ba7c9a30ef18b09 100644
--- a/chromeos/dbus/power_policy_controller.h
+++ b/chromeos/dbus/power_policy_controller.h
@@ -112,6 +112,8 @@ class CHROMEOS_EXPORT PowerPolicyController
// down.
void NotifyChromeIsExiting();
+ void SetEncryptionMigrationActive(bool active);
Daniel Erat 2017/05/30 13:39:42 add a comment documenting what this does, e.g. //
dspaid 2017/05/30 23:37:22 Done.
+
// PowerManagerClient::Observer implementation:
void PowerManagerRestarted() override;
@@ -173,6 +175,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