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

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

Issue 2836603002: cros: Reboot the system after encryption migration finishes. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7bfb4beffa65a54c4a69f118338e669ba3d2559e..3dbd4336afe4463f4beda65cfe94ae2e7392d68e 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
@@ -198,7 +198,7 @@ void EncryptionMigrationScreenHandler::HandleSkipMigration() {
}
void EncryptionMigrationScreenHandler::HandleRequestRestart() {
- chrome::AttemptRestart();
+ DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart();
}
void EncryptionMigrationScreenHandler::UpdateUIState(UIState state) {
@@ -313,7 +313,7 @@ void EncryptionMigrationScreenHandler::OnMigrationProgress(
break;
case cryptohome::DIRCRYPTO_MIGRATION_SUCCESS:
// Restart immediately after successful migration.
- chrome::AttemptRestart();
+ DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart();
break;
case cryptohome::DIRCRYPTO_MIGRATION_FAILED:
UpdateUIState(UIState::MIGRATION_FAILED);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698