Index: chrome/browser/resources/options/browser_options.js |
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js |
index 1b36e91a2f81fb48d24f2b7212e2cdbb4754ded8..318059f1f8ac1771d5ada933e89acf78b1c33c77 100644 |
--- a/chrome/browser/resources/options/browser_options.js |
+++ b/chrome/browser/resources/options/browser_options.js |
@@ -1230,11 +1230,12 @@ cr.define('options', function() { |
/** |
* Activates the Audio History section of the Settings page. |
+ * @param {boolean} visible Whether the audio history section is visible. |
* @param {boolean} alwaysOn Whether always-on hotwording is available. |
* @private |
*/ |
- showAudioHistorySection_: function(alwaysOn) { |
- $('audio-history').hidden = false; |
+ setAudioHistorySectionVisible_: function(visible, alwaysOn) { |
+ $('audio-history').hidden = !visible; |
$('audio-history-always-on-description').hidden = !alwaysOn; |
}, |
@@ -2136,7 +2137,7 @@ cr.define('options', function() { |
'setVirtualKeyboardCheckboxState', |
'setupPageZoomSelector', |
'setupProxySettingsButton', |
- 'showAudioHistorySection', |
+ 'setAudioHistorySectionVisible', |
'showBluetoothSettings', |
'showCreateProfileError', |
'showCreateProfileSuccess', |