Shows and hides the Voice section with the hotword checkbox.

This prevents an empty Voice section from being shown.

BUG=395509

Review URL: https://codereview.chromium.org/418693003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285487 0039d316-1c4b-4281-b951-d872f2087c98
parent 8bb29d8c
......@@ -153,7 +153,7 @@
</div>
</section>
<section>
<h3 i18n-content="sectionTitleVoice"></h3>
<h3 id="voice-section-title" i18n-content="sectionTitleVoice" hidden></h3>
<div id="voice-section-content">
<div id="hotword-search" hidden>
<div class="checkbox">
......
......@@ -1030,6 +1030,7 @@ cr.define('options', function() {
* @private
*/
showHotwordSection_: function(opt_enabled, opt_error) {
$('voice-section-title').hidden = false;
$('hotword-search').hidden = false;
$('hotword-search-setting-indicator').setError(opt_error);
if (opt_enabled && opt_error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment