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

Unified Diff: chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc

Issue 2801873007: Resume encryption migration immediately if the previous migration is incomplete. (Closed)
Patch Set: Created 3 years, 8 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/ui/webui/chromeos/login/encryption_migration_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc
index e5779d378ec5231a9c3b1cd4149b61c702bffcc2..730276710f4a99c440af5c371687a4f4e74855fb 100644
--- a/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc
@@ -58,6 +58,13 @@ void EncryptionMigrationScreenHandler::SetUserContext(
user_context_ = user_context;
}
+void EncryptionMigrationScreenHandler::SetShouldResume(bool should_resume) {
+ if (current_ui_state_ == INITIAL && should_resume) {
+ // TODO(fukino): Wait until the battery gets enough level.
+ StartMigration();
+ }
+}
+
void EncryptionMigrationScreenHandler::SetContinueLoginCallback(
ContinueLoginCallback callback) {
continue_login_callback_ = std::move(callback);
@@ -86,6 +93,7 @@ void EncryptionMigrationScreenHandler::RegisterMessages() {
}
void EncryptionMigrationScreenHandler::HandleStartMigration() {
+ // TODO(fukino): Wait until the battery gets enough level.
StartMigration();
}

Powered by Google App Engine
This is Rietveld 408576698