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

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

Issue 2849833002: cros: Add UMA metrics in encryption migration UI. (Closed)
Patch Set: Address review comments. 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
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698