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

Unified Diff: chrome/browser/resources/login/display_manager.js

Issue 221553009: Tiny cleanUp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Declaration removed. Created 6 years, 9 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/ui/webui/chromeos/login/signin_screen_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/login/display_manager.js
diff --git a/chrome/browser/resources/login/display_manager.js b/chrome/browser/resources/login/display_manager.js
index 836dc003ca6dc6257b603069408de6eb1e8c41b8..cce4240c6dcf2f29f7c57ee6232e9588c92541ad 100644
--- a/chrome/browser/resources/login/display_manager.js
+++ b/chrome/browser/resources/login/display_manager.js
@@ -213,12 +213,12 @@ cr.define('cr.ui.login', function() {
* @param {string} name Accelerator name.
*/
handleAccelerator: function(name) {
+ var currentStepId = this.screens_[this.currentStep_];
if (name == ACCELERATOR_CANCEL) {
if (this.currentScreen.cancel) {
this.currentScreen.cancel();
}
} else if (name == ACCELERATOR_ENROLLMENT) {
- var currentStepId = this.screens_[this.currentStep_];
if (currentStepId == SCREEN_GAIA_SIGNIN ||
currentStepId == SCREEN_ACCOUNT_PICKER) {
chrome.send('toggleEnrollmentScreen');
@@ -233,7 +233,6 @@ cr.define('cr.ui.login', function() {
this.currentScreen.cancelAutoEnrollment();
}
} else if (name == ACCELERATOR_KIOSK_ENABLE) {
- var currentStepId = this.screens_[this.currentStep_];
if (currentStepId == SCREEN_GAIA_SIGNIN ||
currentStepId == SCREEN_ACCOUNT_PICKER) {
chrome.send('toggleKioskEnableScreen');
@@ -242,7 +241,6 @@ cr.define('cr.ui.login', function() {
if (this.allowToggleVersion_)
$('version-labels').hidden = !$('version-labels').hidden;
} else if (name == ACCELERATOR_RESET) {
- var currentStepId = this.screens_[this.currentStep_];
if (currentStepId == SCREEN_GAIA_SIGNIN ||
currentStepId == SCREEN_ACCOUNT_PICKER) {
chrome.send('toggleResetScreen');
@@ -254,11 +252,9 @@ cr.define('cr.ui.login', function() {
if (this.isOobeUI())
this.showDeviceRequisitionRemoraPrompt_();
} else if (name == ACCELERATOR_APP_LAUNCH_BAILOUT) {
- var currentStepId = this.screens_[this.currentStep_];
if (currentStepId == SCREEN_APP_LAUNCH_SPLASH)
chrome.send('cancelAppLaunch');
} else if (name == ACCELERATOR_APP_LAUNCH_NETWORK_CONFIG) {
- var currentStepId = this.screens_[this.currentStep_];
if (currentStepId == SCREEN_APP_LAUNCH_SPLASH)
chrome.send('networkConfigRequest');
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698