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> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" | 10 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" |
9 #include "chrome/browser/chromeos/login/wizard_controller.h" | 11 #include "chrome/browser/chromeos/login/wizard_controller.h" |
10 | 12 |
11 namespace chromeos { | 13 namespace chromeos { |
12 | 14 |
13 EncryptionMigrationScreen::EncryptionMigrationScreen( | 15 EncryptionMigrationScreen::EncryptionMigrationScreen( |
14 BaseScreenDelegate* base_screen_delegate, | 16 BaseScreenDelegate* base_screen_delegate, |
15 EncryptionMigrationScreenView* view) | 17 EncryptionMigrationScreenView* view) |
16 : BaseScreen(base_screen_delegate, OobeScreen::SCREEN_ENCRYPTION_MIGRATION), | 18 : BaseScreen(base_screen_delegate, OobeScreen::SCREEN_ENCRYPTION_MIGRATION), |
(...skipping 27 matching lines...) Expand all Loading... |
44 if (view_ == view) | 46 if (view_ == view) |
45 view_ = nullptr; | 47 view_ = nullptr; |
46 } | 48 } |
47 | 49 |
48 void EncryptionMigrationScreen::SetUserContext( | 50 void EncryptionMigrationScreen::SetUserContext( |
49 const UserContext& user_context) { | 51 const UserContext& user_context) { |
50 DCHECK(view_); | 52 DCHECK(view_); |
51 view_->SetUserContext(user_context); | 53 view_->SetUserContext(user_context); |
52 } | 54 } |
53 | 55 |
| 56 void EncryptionMigrationScreen::SetContinueLoginCallback( |
| 57 ContinueLoginCallback callback) { |
| 58 DCHECK(view_); |
| 59 view_->SetContinueLoginCallback(std::move(callback)); |
| 60 } |
| 61 |
54 } // namespace chromeos | 62 } // namespace chromeos |
OLD | NEW |