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

Unified Diff: chrome/browser/resources/options/browser_options.js

Issue 780703004: [Hotword] Ok Google options disappear if search provider is changed from (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check for no default url Created 6 years 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
« no previous file with comments | « no previous file | chrome/browser/search/hotword_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 05dd0f00968d932de50e6a0dbcfa492890c66fe2..cb14dce33acc81bb8b7006abd0403be6f1d61fb9 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -1196,6 +1196,18 @@ cr.define('options', function() {
},
/**
+ * Controls the visibility of all the hotword sections.
+ * @param {boolean} visible Whether to show hotword sections.
+ * @private
+ */
+ setHotwordSectionVisible_: function(visible) {
+ $('hotword-search').hidden = !visible;
+ $('hotword-always-on-search').hidden = !visible;
+ $('hotword-no-dsp-search').hidden = !visible;
+ $('audio-history').hidden = !visible;
+ },
+
+ /**
* Shows or hides the hotword retrain link
* @param {boolean} visible Whether to show the link.
* @private
@@ -2113,6 +2125,7 @@ cr.define('options', function() {
'setNativeThemeButtonEnabled',
'setNetworkPredictionValue',
'setHighContrastCheckboxState',
+ 'setHotwordSectionVisible',
'setMetricsReportingCheckboxState',
'setMetricsReportingSettingVisibility',
'setProfilesInfo',
« no previous file with comments | « no previous file | chrome/browser/search/hotword_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698