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

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

Issue 559303002: Hotword Audio Verification app: control the hotword settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launch-state
Patch Set: Created 6 years, 3 months 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
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',

Powered by Google App Engine
This is Rietveld 408576698