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

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

Issue 2811713002: Check the available storage size before starting encryption migration. (Closed)
Patch Set: Always check the available storage. 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/encryption_migration_screen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 623
624 EncryptionMigrationScreen* migration_screen = 624 EncryptionMigrationScreen* migration_screen =
625 static_cast<EncryptionMigrationScreen*>( 625 static_cast<EncryptionMigrationScreen*>(
626 host_->GetWizardController()->current_screen()); 626 host_->GetWizardController()->current_screen());
627 DCHECK(migration_screen); 627 DCHECK(migration_screen);
628 migration_screen->SetUserContext(user_context); 628 migration_screen->SetUserContext(user_context);
629 migration_screen->SetShouldResume(has_incomplete_migration); 629 migration_screen->SetShouldResume(has_incomplete_migration);
630 migration_screen->SetContinueLoginCallback(base::BindOnce( 630 migration_screen->SetContinueLoginCallback(base::BindOnce(
631 &ExistingUserController::ContinuePerformLogin, weak_factory_.GetWeakPtr(), 631 &ExistingUserController::ContinuePerformLogin, weak_factory_.GetWeakPtr(),
632 login_performer_->auth_mode())); 632 login_performer_->auth_mode()));
633 migration_screen->SetupInitialView();
633 } 634 }
634 635
635 void ExistingUserController::ShowTPMError() { 636 void ExistingUserController::ShowTPMError() {
636 login_display_->SetUIEnabled(false); 637 login_display_->SetUIEnabled(false);
637 login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR); 638 login_display_->ShowErrorScreen(LoginDisplay::TPM_ERROR);
638 } 639 }
639 640
640 void ExistingUserController::ShowPasswordChangedDialog() { 641 void ExistingUserController::ShowPasswordChangedDialog() {
641 RecordPasswordChangeFlow(LOGIN_PASSWORD_CHANGE_FLOW_PASSWORD_CHANGED); 642 RecordPasswordChangeFlow(LOGIN_PASSWORD_CHANGE_FLOW_PASSWORD_CHANGED);
642 643
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 login_display_->ShowUnrecoverableCrypthomeErrorDialog(); 1435 login_display_->ShowUnrecoverableCrypthomeErrorDialog();
1435 } 1436 }
1436 1437
1437 void ExistingUserController::ClearRecordedNames() { 1438 void ExistingUserController::ClearRecordedNames() {
1438 display_email_.clear(); 1439 display_email_.clear();
1439 display_name_.clear(); 1440 display_name_.clear();
1440 given_name_.clear(); 1441 given_name_.clear();
1441 } 1442 }
1442 1443
1443 } // namespace chromeos 1444 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/encryption_migration_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698