Chromium Code Reviews| 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 c7bcb147c8cd40ab170006dd21461063323f6249..2419b9603657d7b1bfba4faad340b76222fd1da5 100644 |
| --- a/chrome/browser/resources/options/browser_options.js |
| +++ b/chrome/browser/resources/options/browser_options.js |
| @@ -220,6 +220,19 @@ cr.define('options', function() { |
| }; |
| } |
| + // Control the hotword-always-on pref with the Hotword Audio |
| + // Verification app. |
| + $('hotword-always-on-search-checkbox').customChangeHandler = |
| + function(event) { |
| + if (($('hotword-always-on-search-checkbox').checked)) { |
| + $('hotword-always-on-search-checkbox').checked = false; |
|
rpetterson
2014/09/11 20:14:17
Does setting checked to false actually update the
kcarattini
2014/09/12 01:02:07
My understanding is that this function is called a
|
| + chrome.send('launchHotwordAudioVerificationApp', [Boolean(false)]); |
| + return true; |
| + } else { |
| + return false; |
| + } |
| + }; |
| + |
| $('themes-gallery').onclick = function(event) { |
| window.open(loadTimeData.getString('themesGalleryURL')); |
| chrome.send('coreOptionsUserMetricsAction', |