Index: chrome/browser/resources/options/chromeos/onc_data.js |
diff --git a/chrome/browser/resources/options/chromeos/onc_data.js b/chrome/browser/resources/options/chromeos/onc_data.js |
index 78e25a7170f8ae302867cc125c0a0ab4628f5a73..eeaf58c53b872a5834bdc8f830980161fd71fb5e 100644 |
--- a/chrome/browser/resources/options/chromeos/onc_data.js |
+++ b/chrome/browser/resources/options/chromeos/onc_data.js |
@@ -100,7 +100,9 @@ cr.define('cr.onc', function() { |
*/ |
getTranslatedValue: function(key) { |
var value = this.getActiveValue(key); |
- if (typeof value != 'string') |
+ if (typeof value == 'boolean') |
+ value = value ? 'True' : 'False'; |
pneubeck (no reviews)
2014/09/05 16:05:44
this could always map to the translation of 'True'
stevenjb
2014/09/05 16:54:21
Sometimes we may want to map 'True' -> "True", oth
|
+ else if (typeof value != 'string') |
return value; |
pneubeck (no reviews)
2014/09/05 16:05:44
nit: to prevent surprises, maybe convert |value| t
stevenjb
2014/09/05 16:54:21
Until/unless we have a situation where we wanted t
|
var oncString = 'Onc' + key + value; |
// Handle special cases |