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

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

Issue 677843002: Updates the hotword settings page according to newest mocks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review Comments Created 6 years, 2 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 ee0819c086dd04e5f0c08938503fa776195ec4ea..d76376337ce525b31456da3d9ce92c15d2b74197 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -1144,12 +1144,20 @@ cr.define('options', function() {
* @private
*/
showHotwordAlwaysOnSection_: function() {
- $('voice-section-title').hidden = false;
$('hotword-always-on-search').hidden = false;
$('audio-logging').hidden = false;
},
/**
+ * Activates the Hotword section on devices with no DSP
+ * from the System settings page.
+ * @private
+ */
+ showHotwordNoDSPSection_: function() {
+ $('hotword-no-dsp-search').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.
@@ -2046,6 +2054,7 @@ cr.define('options', function() {
'showCreateProfileSuccess',
'showCreateProfileWarning',
'showHotwordAlwaysOnSection',
+ 'showHotwordNoDSPSection',
'showHotwordSection',
'showMouseControls',
'showSupervisedUserImportError',
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698