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

Unified Diff: chrome/browser/resources/options/chromeos/onc_data.js

Issue 535283002: Translate activation/romaing state, restricted pool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_7b
Patch Set: Rebase Created 6 years, 3 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/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

Powered by Google App Engine
This is Rietveld 408576698