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

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

Issue 2842433002: cros: Prevent casual shut down and power save during migration. (Closed)
Patch Set: Update BUILD.gn to include PowerSaveBlocker. 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 | « chrome/browser/resources/chromeos/login/header_bar.css ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/screen_encryption_migration.js
diff --git a/chrome/browser/resources/chromeos/login/screen_encryption_migration.js b/chrome/browser/resources/chromeos/login/screen_encryption_migration.js
index 70740d3483ee3d495879d83203c29d1ee8d5b71a..ae2ae6c2457db32c76b0a0fa3fa2638c76558467 100644
--- a/chrome/browser/resources/chromeos/login/screen_encryption_migration.js
+++ b/chrome/browser/resources/chromeos/login/screen_encryption_migration.js
@@ -48,10 +48,15 @@ login.createScreen('EncryptionMigrationScreen', 'encryption-migration',
/**
* Updates the migration screen by specifying a state which corresponds to
* a sub step in the migration process.
- * @param {number} state The UI state to identify a sub step in migration.
+ * @param {EncryptionMigrationUIState} state The UI state to identify a sub
+ * step in migration.
*/
setUIState: function(state) {
$('encryption-migration-element').uiState = state;
+
+ // Hide "Shut down" button during migration.
+ $('login-header-bar').showShutdownButton =
+ state != EncryptionMigrationUIState.MIGRATING;
},
/**
« no previous file with comments | « chrome/browser/resources/chromeos/login/header_bar.css ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698