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

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

Issue 183923008: Fixed handling of 'oem_device_requisition' VPD value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
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 ff5ba8bb4f04781781cf0bcc746456e47f9a2fd0..0d37716697e0274b8546411473e97c107419d4f0 100644
--- a/chrome/browser/resources/login/display_manager.js
+++ b/chrome/browser/resources/login/display_manager.js
@@ -596,6 +596,16 @@ cr.define('cr.ui.login', function() {
*/
onConfirmDeviceRequisitionPrompt_: function(value) {
this.deviceRequisition_ = value;
+ chrome.send('setDeviceRequisition', [value == '' ? 'none' : value]);
+ },
+
+ /**
+ * Confirmation handle for the device requisition prompt.
+ * @param {string} value The value entered by the user.
+ * @private
+ */
+ onConfirmDeviceRequisitionPrompt_: function(value) {
xiyuan 2014/03/01 04:38:58 Looks like the version at line 597-600 is the one
zel 2014/03/01 21:30:27 Done.
+ this.deviceRequisition_ = value;
chrome.send('setDeviceRequisition', [value]);
},
@@ -633,8 +643,11 @@ cr.define('cr.ui.login', function() {
}
this.deviceRequisitionRemoraDialog_.show(
loadTimeData.getString('deviceRequisitionRemoraPromptText'),
- function() {
+ function() { // onShow
chrome.send('setDeviceRequisition', ['remora']);
+ },
+ function() { // onCancel
+ chrome.send('setDeviceRequisition', ['none']);
});
},

Powered by Google App Engine
This is Rietveld 408576698