| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/screens/encryption_migration_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" | 10 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 if (view_ == view) | 46 if (view_ == view) |
| 47 view_ = nullptr; | 47 view_ = nullptr; |
| 48 } | 48 } |
| 49 | 49 |
| 50 void EncryptionMigrationScreen::SetUserContext( | 50 void EncryptionMigrationScreen::SetUserContext( |
| 51 const UserContext& user_context) { | 51 const UserContext& user_context) { |
| 52 DCHECK(view_); | 52 DCHECK(view_); |
| 53 view_->SetUserContext(user_context); | 53 view_->SetUserContext(user_context); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void EncryptionMigrationScreen::SetShouldResume(bool should_resume) { |
| 57 DCHECK(view_); |
| 58 view_->SetShouldResume(should_resume); |
| 59 } |
| 60 |
| 56 void EncryptionMigrationScreen::SetContinueLoginCallback( | 61 void EncryptionMigrationScreen::SetContinueLoginCallback( |
| 57 ContinueLoginCallback callback) { | 62 ContinueLoginCallback callback) { |
| 58 DCHECK(view_); | 63 DCHECK(view_); |
| 59 view_->SetContinueLoginCallback(std::move(callback)); | 64 view_->SetContinueLoginCallback(std::move(callback)); |
| 60 } | 65 } |
| 61 | 66 |
| 62 } // namespace chromeos | 67 } // namespace chromeos |
| OLD | NEW |