Chromium Code Reviews| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" | 8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" |
| 9 #include "chrome/browser/chromeos/login/wizard_controller.h" | 9 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 void EncryptionMigrationScreen::OnExit() { | 38 void EncryptionMigrationScreen::OnExit() { |
| 39 Finish(ScreenExitCode::ENCRYPTION_MIGRATION_FINISHED); | 39 Finish(ScreenExitCode::ENCRYPTION_MIGRATION_FINISHED); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void EncryptionMigrationScreen::OnViewDestroyed( | 42 void EncryptionMigrationScreen::OnViewDestroyed( |
| 43 EncryptionMigrationScreenView* view) { | 43 EncryptionMigrationScreenView* view) { |
| 44 if (view_ == view) | 44 if (view_ == view) |
| 45 view_ = nullptr; | 45 view_ = nullptr; |
| 46 } | 46 } |
| 47 | 47 |
| 48 void EncryptionMigrationScreen::SetUserContext( | |
| 49 const UserContext& user_context) { | |
| 50 if (view_) | |
|
xiyuan
2017/03/30 17:55:39
Remove the "if" to let it crash when we are called
fukino
2017/03/31 02:29:52
Done.
| |
| 51 view_->SetUserContext(user_context); | |
| 52 } | |
| 53 | |
| 48 } // namespace chromeos | 54 } // namespace chromeos |
| OLD | NEW |