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

Unified Diff: chrome/browser/resources/chromeos/login/encryption_migration.js

Issue 2818433002: Wait for the battery level before starting encryption migration. (Closed)
Patch Set: Update |isMigrationAccepted| inside encryption-migration element. 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/resources/chromeos/login/encryption_migration.js
diff --git a/chrome/browser/resources/chromeos/login/encryption_migration.js b/chrome/browser/resources/chromeos/login/encryption_migration.js
index f78d68b8fe4ee3e55f65d6736899dde6922efe7b..494176a5b47431f4a411818ae06b6da445fafaa0 100644
--- a/chrome/browser/resources/chromeos/login/encryption_migration.js
+++ b/chrome/browser/resources/chromeos/login/encryption_migration.js
@@ -50,6 +50,30 @@ Polymer({
type: Boolean,
value: false
},
+
+ /**
+ * Battery level.
+ */
+ batteryPercent: {
+ type: Number,
+ value: 0
+ },
+
+ /**
+ * True if the battery level is enough to start migration.
+ */
+ isEnoughBattery: {
+ type: Boolean,
+ value: true
+ },
+
+ /**
+ * True if the user already accepted the migration.
+ */
+ isMigrationAccepted: {
+ type: Boolean,
+ value: false
+ },
},
/**
@@ -120,6 +144,7 @@ Polymer({
* @private
*/
onUpgrade_: function() {
+ this.isMigrationAccepted = true;
this.fire('upgrade');
},

Powered by Google App Engine
This is Rietveld 408576698