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..49ae2b9ce844e9a66b7cdaf4a8ad63fd3a7fc2ba 100644 |
--- a/chrome/browser/resources/options/browser_options.js |
+++ b/chrome/browser/resources/options/browser_options.js |
@@ -1202,7 +1202,7 @@ cr.define('options', function() { |
* @param {boolean} visible Whether to show hotword sections. |
* @private |
*/ |
- setHotwordSectionVisible_: function(visible) { |
+ setAllHotwordSectionsVisible_: function(visible) { |
$('hotword-search').hidden = !visible; |
$('hotword-always-on-search').hidden = !visible; |
$('hotword-no-dsp-search').hidden = !visible; |
@@ -1231,10 +1231,12 @@ cr.define('options', function() { |
/** |
* Activates the Audio History section of the Settings page. |
* @param {boolean} alwaysOn Whether always-on hotwording is available. |
+ * @param {string} labelText Text describing current audio history state. |
* @private |
*/ |
- showAudioHistorySection_: function(alwaysOn) { |
+ showAudioHistorySection_: function(alwaysOn, labelText) { |
$('audio-history').hidden = false; |
+ $('audio-history-label').textContent = labelText; |
$('audio-history-always-on-description').hidden = !alwaysOn; |
}, |
@@ -2127,7 +2129,7 @@ cr.define('options', function() { |
'setNativeThemeButtonEnabled', |
'setNetworkPredictionValue', |
'setHighContrastCheckboxState', |
- 'setHotwordSectionVisible', |
+ 'setAllHotwordSectionsVisible', |
'setMetricsReportingCheckboxState', |
'setMetricsReportingSettingVisibility', |
'setProfilesInfo', |