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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.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/chromeos/login/existing_user_controller.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index cbec83f7e215f14bd06474f028289827fe5ba209..10ced259f629016d8ec3569d4cc4333c137f7f4d 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -617,7 +617,8 @@ void ExistingUserController::ShowKioskAutolaunchScreen() {
}
void ExistingUserController::ShowEncryptionMigrationScreen(
- const UserContext& user_context) {
+ const UserContext& user_context,
+ bool has_incomplete_migration) {
host_->StartWizard(OobeScreen::SCREEN_ENCRYPTION_MIGRATION);
EncryptionMigrationScreen* migration_screen =
@@ -625,6 +626,7 @@ void ExistingUserController::ShowEncryptionMigrationScreen(
host_->GetWizardController()->current_screen());
DCHECK(migration_screen);
migration_screen->SetUserContext(user_context);
+ migration_screen->SetShouldResume(has_incomplete_migration);
migration_screen->SetContinueLoginCallback(base::BindOnce(
&ExistingUserController::ContinuePerformLogin, weak_factory_.GetWeakPtr(),
login_performer_->auth_mode()));
@@ -868,8 +870,9 @@ void ExistingUserController::OnPasswordChangeDetected() {
}
void ExistingUserController::OnOldEncryptionDetected(
- const UserContext& user_context) {
- ShowEncryptionMigrationScreen(user_context);
+ const UserContext& user_context,
+ bool has_incomplete_migration) {
+ ShowEncryptionMigrationScreen(user_context, has_incomplete_migration);
}
void ExistingUserController::WhiteListCheckFailed(const std::string& email) {

Powered by Google App Engine
This is Rietveld 408576698