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

Side by Side Diff: chrome/browser/chromeos/login/screens/encryption_migration_screen.h

Issue 2798023005: Force encryption migration if the device supports ARC. (Closed)
Patch Set: Add enable-encryption-migration to histgrams.xml. 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
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_
7 7
8 #include "chrome/browser/chromeos/login/screens/base_screen.h" 8 #include "chrome/browser/chromeos/login/screens/base_screen.h"
9 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view .h" 9 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view .h"
10 #include "chromeos/login/auth/login_performer.h"
10 11
11 namespace chromeos { 12 namespace chromeos {
12 13
13 class UserContext; 14 class UserContext;
14 15
15 class EncryptionMigrationScreen 16 class EncryptionMigrationScreen
16 : public BaseScreen, 17 : public BaseScreen,
17 public EncryptionMigrationScreenView::Delegate { 18 public EncryptionMigrationScreenView::Delegate {
18 public: 19 public:
20 using ContinueLoginCallback =
21 base::OnceCallback<void(const UserContext&,
22 LoginPerformer::AuthorizationMode)>;
23
19 EncryptionMigrationScreen(BaseScreenDelegate* base_screen_delegate, 24 EncryptionMigrationScreen(BaseScreenDelegate* base_screen_delegate,
20 EncryptionMigrationScreenView* view); 25 EncryptionMigrationScreenView* view);
21 ~EncryptionMigrationScreen() override; 26 ~EncryptionMigrationScreen() override;
22 27
23 // BaseScreen implementation: 28 // BaseScreen implementation:
24 void Show() override; 29 void Show() override;
25 void Hide() override; 30 void Hide() override;
26 31
27 // EncryptionMigrationScreenView::Delegate implementation: 32 // EncryptionMigrationScreenView::Delegate implementation:
28 void OnExit() override; 33 void OnExit() override;
29 void OnViewDestroyed(EncryptionMigrationScreenView* view) override; 34 void OnViewDestroyed(EncryptionMigrationScreenView* view) override;
30 35
31 // Sets the UserContext for a user whose cryptohome should be migrated. 36 // Sets the UserContext for a user whose cryptohome should be migrated.
32 void SetUserContext(const UserContext& user_context); 37 void SetUserContext(const UserContext& user_context);
33 38
39 // Sets a callback, which should be called when the user want to log in to the
40 // session from the migration UI.
41 void SetContinueLoginCallback(ContinueLoginCallback callback);
42
34 private: 43 private:
35 EncryptionMigrationScreenView* view_; 44 EncryptionMigrationScreenView* view_;
36 45
37 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen); 46 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen);
38 }; 47 };
39 48
40 } // namespace chromeos 49 } // namespace chromeos
41 50
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ 51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698