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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h
index e65979e186137306ad2d0f9e966fd83a182e8eab..26bbd9a8bef1ce7f5c0eaee889a709b0e56ff539 100644
--- a/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h
@@ -113,6 +113,9 @@ class EncryptionMigrationScreenHandler : public EncryptionMigrationScreenView,
// sufficient.
bool should_migrate_on_enough_battery_ = false;
+ // The battery level at the timing that the migration starts.
+ double initial_battery_percent_ = 0.0;
+
std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_;
base::WeakPtrFactory<EncryptionMigrationScreenHandler> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698