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 #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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // True if the system should resume the previous incomplete migration. | 106 // True if the system should resume the previous incomplete migration. |
107 bool should_resume_ = false; | 107 bool should_resume_ = false; |
108 | 108 |
109 // The current battery level. | 109 // The current battery level. |
110 double current_battery_percent_ = 0.0; | 110 double current_battery_percent_ = 0.0; |
111 | 111 |
112 // True if the migration should start immediately once the battery level gets | 112 // True if the migration should start immediately once the battery level gets |
113 // sufficient. | 113 // sufficient. |
114 bool should_migrate_on_enough_battery_ = false; | 114 bool should_migrate_on_enough_battery_ = false; |
115 | 115 |
| 116 // The battery level at the timing that the migration starts. |
| 117 double initial_battery_percent_ = 0.0; |
| 118 |
116 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; | 119 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; |
117 | 120 |
118 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; | 121 base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_; |
119 | 122 |
120 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); | 123 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreenHandler); |
121 }; | 124 }; |
122 | 125 |
123 } // namespace chromeos | 126 } // namespace chromeos |
124 | 127 |
125 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA
NDLER_H_ | 128 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENCRYPTION_MIGRATION_SCREEN_HA
NDLER_H_ |
OLD | NEW |