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

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

Issue 111443008: Multiprofiles: cancellation of adding a profile on ESC-pressing at account picker screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Constant and getter inserted. Created 7 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/screen_account_picker.js
diff --git a/chrome/browser/resources/chromeos/login/screen_account_picker.js b/chrome/browser/resources/chromeos/login/screen_account_picker.js
index 0064e46a6959d99ab3c3a9b99f64c8b8aa0b985f..581f8507e2415bd7245d275caf9b307cd02e0695 100644
--- a/chrome/browser/resources/chromeos/login/screen_account_picker.js
+++ b/chrome/browser/resources/chromeos/login/screen_account_picker.js
@@ -76,6 +76,13 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
}
},
+ /* Cancel user adding if ESC was pressed.
+ */
+ cancel: function() {
+ if (Oobe.getInstance().displayType() == DISPLAY_TYPE.USER_ADDING)
+ chrome.send('cancelUserAdding');
+ },
+
/**
* Event handler that is invoked just after the frame is shown.
* @param {string} data Screen init payload.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698