Index: chrome/browser/resources/options/pref_ui.js |
diff --git a/chrome/browser/resources/options/pref_ui.js b/chrome/browser/resources/options/pref_ui.js |
index 7d8eb35bb369694e36cf758025b18b3063bcf76f..055b21ad455c78b864f6f6375faef4964040b9bd 100644 |
--- a/chrome/browser/resources/options/pref_ui.js |
+++ b/chrome/browser/resources/options/pref_ui.js |
@@ -132,16 +132,15 @@ PrefSelect.prototype = { |
/** |
* Sets up options in select element. |
* @param {Array} options List of option and their display text. |
- * Each string in the array contains options value and display text split |
- * with '|' character. |
+ * Each element in the array is an array of length 2 which contains options |
+ * value in the first element and display text in the second element. |
* |
* TODO(zelidrag): move this to that i18n template classes. |
*/ |
initializeValues: function(options) { |
var self = this; |
- options.forEach(function (option) { |
- var values = option.split('|'); |
- self.appendChild(new Option(values[1], values[0], false, false)); |
+ options.forEach(function (values) { |
+ self.appendChild(new Option(values[1], values[0])); |
}); |
}, |
/** |