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

Side by Side Diff: chrome/browser/chromeos/login/screens/encryption_migration_screen.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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen.h"
6
7 #include "base/logging.h"
8 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
9 #include "chrome/browser/chromeos/login/wizard_controller.h"
10
11 namespace chromeos {
12
13 EncryptionMigrationScreen::EncryptionMigrationScreen(
14 BaseScreenDelegate* base_screen_delegate,
15 EncryptionMigrationScreenView* view)
16 : BaseScreen(base_screen_delegate, OobeScreen::SCREEN_ENCRYPTION_MIGRATION),
17 view_(view) {
18 DCHECK(view_);
19 if (view_)
20 view_->SetDelegate(this);
21 }
22
23 EncryptionMigrationScreen::~EncryptionMigrationScreen() {
24 if (view_)
25 view_->SetDelegate(nullptr);
26 }
27
28 void EncryptionMigrationScreen::Show() {
29 if (view_)
30 view_->Show();
31 }
32
33 void EncryptionMigrationScreen::Hide() {
34 if (view_)
35 view_->Hide();
36 }
37
38 void EncryptionMigrationScreen::OnExit() {
39 Finish(ScreenExitCode::ENCRYPTION_MIGRATION_FINISHED);
40 }
41
42 void EncryptionMigrationScreen::OnViewDestroyed(
43 EncryptionMigrationScreenView* view) {
44 if (view_ == view)
45 view_ = nullptr;
46 }
47
48 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698