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..5f7a850183e9393c0bef93c2e5b9ef23eac21ba7 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() { |
}, |
/** |
+ * Hides the hotword sections when it is no longer an option |
+ * such as when the user selects a non-Google search engine. |
+ * @private |
+ */ |
+ hideHotwordSection_: function() { |
Dan Beam
2014/12/04 20:44:07
nit:
setHotwordSectionVisible: function(visible
rpetterson
2014/12/04 23:20:28
Done.
|
+ $('hotword-search').hidden = true; |
+ $('hotword-always-on-search').hidden = true; |
+ $('hotword-no-dsp-search').hidden = true; |
+ $('audio-history').hidden = true; |
+ }, |
+ |
+ /** |
* Shows or hides the hotword retrain link |
* @param {boolean} visible Whether to show the link. |
* @private |
@@ -2098,6 +2110,7 @@ cr.define('options', function() { |
'getCurrentProfile', |
'getStartStopSyncButton', |
'hideBluetoothSettings', |
+ 'hideHotwordSection', |
'notifyInitializationComplete', |
'removeBluetoothDevice', |
'scrollToSection', |