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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h

Issue 2851683002: cros: Remove user directory when encryption migration fails. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HANDL ER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 void CheckAvailableStorage(); 71 void CheckAvailableStorage();
72 void OnGetAvailableStorage(int64_t size); 72 void OnGetAvailableStorage(int64_t size);
73 void WaitBatteryAndMigrate(); 73 void WaitBatteryAndMigrate();
74 void StartMigration(); 74 void StartMigration();
75 void OnMountExistingVault(bool success, 75 void OnMountExistingVault(bool success,
76 cryptohome::MountError return_code, 76 cryptohome::MountError return_code,
77 const std::string& mount_hash); 77 const std::string& mount_hash);
78 void StartBlockingPowerSave(); 78 void StartBlockingPowerSave();
79 void StopBlockingPowerSave(); 79 void StopBlockingPowerSave();
80 // Removes cryptohome and shows the error screen after the removal finishes.
81 void RemoveCryptohome();
82 void OnRemoveCryptohome(bool success, cryptohome::MountError return_code);
80 83
81 // Creates authorization key for MountEx method using |user_context_|. 84 // Creates authorization key for MountEx method using |user_context_|.
82 cryptohome::KeyDefinition GetAuthKey(); 85 cryptohome::KeyDefinition GetAuthKey();
83 86
84 // Handlers for cryptohome API callbacks. 87 // Handlers for cryptohome API callbacks.
85 void OnMigrationProgress(cryptohome::DircryptoMigrationStatus status, 88 void OnMigrationProgress(cryptohome::DircryptoMigrationStatus status,
86 uint64_t current, 89 uint64_t current,
87 uint64_t total); 90 uint64_t total);
88 void OnMigrationRequested(bool success); 91 void OnMigrationRequested(bool success);
89 92
(...skipping 23 matching lines...) Expand all
113 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; 116 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_;
114 117
115 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; 118 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_;
116 119
117 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); 120 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler);
118 }; 121 };
119 122
120 } // namespace chromeos 123 } // namespace chromeos
121 124
122 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA NDLER_H_ 125 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA NDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698