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

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

Issue 460113005: Adds the audio history and always on hotwording settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review Comments Created 6 years, 4 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 d938e469aa6e2ba438bb1ed16df8f11a018424c9..4b6a5e3eefd128093c621f62ea371d93dab86e14 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -1099,6 +1099,16 @@ cr.define('options', function() {
},
/**
+ * Activates the Audio History and Always-On Hotword sections from the
+ * System settings page.
+ * @private
+ */
+ showHotwordAlwaysOnSection_: function() {
+ $('hotword-always-on-search').hidden = false;
+ $('audio-logging').hidden = false;
+ },
+
+ /**
* Event listener for the 'homepage is NTP' preference. Updates the label
* next to the 'Change' button.
* @param {Event} event The preference change event.
@@ -1926,6 +1936,7 @@ cr.define('options', function() {
'showCreateProfileError',
'showCreateProfileSuccess',
'showCreateProfileWarning',
+ 'showHotwordAlwaysOnSection',
'showHotwordSection',
'showMouseControls',
'showSupervisedUserImportError',
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/search/hotword_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698