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

Side by Side Diff: chrome/browser/resources/chromeos/login/encryption_migration.js

Issue 2818433002: Wait for the battery level before starting encryption migration. (Closed)
Patch Set: 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 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 /** 5 /**
6 * @fileoverview Polymer element for displaying encryption migration screen. 6 * @fileoverview Polymer element for displaying encryption migration screen.
7 */ 7 */
8 8
9 /** 9 /**
10 * Enum for the UI states corresponding to sub steps inside migration screen. 10 * Enum for the UI states corresponding to sub steps inside migration screen.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 value: -1 43 value: -1
44 }, 44 },
45 45
46 /** 46 /**
47 * Whether the current migration is resuming the previous one. 47 * Whether the current migration is resuming the previous one.
48 */ 48 */
49 isResuming: { 49 isResuming: {
50 type: Boolean, 50 type: Boolean,
51 value: false 51 value: false
52 }, 52 },
53
54 /**
55 * Battery level.
56 */
57 batteryPercent: {
58 type: Number,
59 value: 0
60 },
61
62 /**
63 * True if the battery level is enough to start migration.
64 */
65 isEnoughBattery: {
66 type: Boolean,
67 value: true
68 },
69
70 /**
71 * True if the user already accepted the migration.
72 */
73 isMigrationAccepted: {
74 type: Boolean,
75 value: false
76 },
53 }, 77 },
54 78
55 /** 79 /**
56 * Returns true if the migration is in initial state. 80 * Returns true if the migration is in initial state.
57 * @param {EncryptionMigrationUIState} state Current UI state 81 * @param {EncryptionMigrationUIState} state Current UI state
58 * @private 82 * @private
59 */ 83 */
60 isInitial_: function(state) { 84 isInitial_: function(state) {
61 return state == EncryptionMigrationUIState.INITIAL; 85 return state == EncryptionMigrationUIState.INITIAL;
62 }, 86 },
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 }, 156 },
133 157
134 /** 158 /**
135 * Handles tap on RESTART button. 159 * Handles tap on RESTART button.
136 * @private 160 * @private
137 */ 161 */
138 onRestart_: function() { 162 onRestart_: function() {
139 this.fire('restart'); 163 this.fire('restart');
140 }, 164 },
141 }); 165 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698