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

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

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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/encryption_migration.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/encryption_migration.html
diff --git a/chrome/browser/resources/chromeos/login/encryption_migration.html b/chrome/browser/resources/chromeos/login/encryption_migration.html
index b1d5d84ea205aaf2401708f348e74a4e7ae3226e..24b4951ac52c107dad5c812f98a295e6ae0c23d2 100644
--- a/chrome/browser/resources/chromeos/login/encryption_migration.html
+++ b/chrome/browser/resources/chromeos/login/encryption_migration.html
@@ -25,12 +25,21 @@
String TBD.
</div>
</div>
- <div class="bottom-buttons flex layout horizontal">
- <div class="flex"></div>
- <oobe-text-button on-tap="onSkip_">Skip</oobe-text-button>
- <oobe-text-button inverse on-tap="onUpgrade_">Upgrade
- </oobe-text-button>
- </div>
+ <template is="dom-if" if="[[!isEnoughBattery]]">
+ <div class="footer flex layout vertical">
+ <div>Battery too low for update. <span>[[batteryPercent]]</span>%
+ </div>
+ <div>Please plug your Chromebook into a power source.</div>
+ </div>
+ </template>
+ <template is="dom-if" if="[[!isResuming]]">
+ <div class="bottom-buttons flex layout horizontal">
+ <div class="flex"></div>
+ <oobe-text-button on-tap="onSkip_">Skip</oobe-text-button>
+ <oobe-text-button inverse on-tap="onUpgrade_"
+ disabled="[[isMigrationAccepted]]">Upgrade</oobe-text-button>
+ </div>
+ </template>
</oobe-dialog>
</template>
<template is="dom-if" if="[[isMigrating_(uiState)]]">
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/encryption_migration.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698