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

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: 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 2a4630562561e1411f2980dfefea589d497dfe03..131e9c14b2cdb931ab2af6c685d424859ca8a83b 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -1139,12 +1139,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.
@@ -2016,6 +2024,7 @@ cr.define('options', function() {
'showCreateProfileSuccess',
'showCreateProfileWarning',
'showHotwordAlwaysOnSection',
+ 'showHotwordNoDSPSection',
'showHotwordSection',
'showMouseControls',
'showSupervisedUserImportError',

Powered by Google App Engine
This is Rietveld 408576698