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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 2779933002: Add a screen to migrate filesystem encryption from eCryptfs to ext4 crypto. (Closed)
Patch Set: Address review comments. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/existing_user_controller.h" 5 #include "chrome/browser/chromeos/login/existing_user_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 } 590 }
591 591
592 void ExistingUserController::ShowKioskEnableScreen() { 592 void ExistingUserController::ShowKioskEnableScreen() {
593 host_->StartWizard(OobeScreen::SCREEN_KIOSK_ENABLE); 593 host_->StartWizard(OobeScreen::SCREEN_KIOSK_ENABLE);
594 } 594 }
595 595
596 void ExistingUserController::ShowKioskAutolaunchScreen() { 596 void ExistingUserController::ShowKioskAutolaunchScreen() {
597 host_->StartWizard(OobeScreen::SCREEN_KIOSK_AUTOLAUNCH); 597 host_->StartWizard(OobeScreen::SCREEN_KIOSK_AUTOLAUNCH);
598 } 598 }
599 599
600 void ExistingUserController::ShowEncryptionMigrationScreen() {
601 host_->StartWizard(OobeScreen::SCREEN_ENCRYPTION_MIGRATION);
602 }
603
600 void ExistingUserController::ShowTPMError() { 604 void ExistingUserController::ShowTPMError() {
601 login_display_->SetUIEnabled(false); 605 login_display_->SetUIEnabled(false);
602 login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR); 606 login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR);
603 } 607 }
604 608
605 void ExistingUserController::ShowPasswordChangedDialog() { 609 void ExistingUserController::ShowPasswordChangedDialog() {
606 RecordPasswordChangeFlow(LOGIN_PASSWORD_CHANGE_FLOW_PASSWORD_CHANGED); 610 RecordPasswordChangeFlow(LOGIN_PASSWORD_CHANGE_FLOW_PASSWORD_CHANGED);
607 611
608 VLOG(1) << "Show password changed dialog" 612 VLOG(1) << "Show password changed dialog"
609 << ", count=" << login_performer_->password_changed_callback_count(); 613 << ", count=" << login_performer_->password_changed_callback_count();
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 last_login_attempt_account_id_, 822 last_login_attempt_account_id_,
819 base::Bind(&ExistingUserController::OnTokenHandleChecked, 823 base::Bind(&ExistingUserController::OnTokenHandleChecked,
820 weak_factory_.GetWeakPtr())); 824 weak_factory_.GetWeakPtr()));
821 return; 825 return;
822 } 826 }
823 } 827 }
824 828
825 ShowPasswordChangedDialog(); 829 ShowPasswordChangedDialog();
826 } 830 }
827 831
832 void ExistingUserController::OnOldEncryptionDetected() {
833 ShowEncryptionMigrationScreen();
834 }
835
828 void ExistingUserController::WhiteListCheckFailed(const std::string& email) { 836 void ExistingUserController::WhiteListCheckFailed(const std::string& email) {
829 PerformLoginFinishedActions(true /* start auto login timer */); 837 PerformLoginFinishedActions(true /* start auto login timer */);
830 838
831 login_display_->ShowWhitelistCheckFailedError(); 839 login_display_->ShowWhitelistCheckFailedError();
832 840
833 if (auth_status_consumer_) { 841 if (auth_status_consumer_) {
834 auth_status_consumer_->OnAuthFailure( 842 auth_status_consumer_->OnAuthFailure(
835 AuthFailure(AuthFailure::WHITELIST_CHECK_FAILED)); 843 AuthFailure(AuthFailure::WHITELIST_CHECK_FAILED));
836 } 844 }
837 845
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 login_display_->ShowUnrecoverableCrypthomeErrorDialog(); 1392 login_display_->ShowUnrecoverableCrypthomeErrorDialog();
1385 } 1393 }
1386 1394
1387 void ExistingUserController::ClearRecordedNames() { 1395 void ExistingUserController::ClearRecordedNames() {
1388 display_email_.clear(); 1396 display_email_.clear();
1389 display_name_.clear(); 1397 display_name_.clear();
1390 given_name_.clear(); 1398 given_name_.clear();
1391 } 1399 }
1392 1400
1393 } // namespace chromeos 1401 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.h ('k') | chrome/browser/chromeos/login/oobe_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698