Commit 273e4812 authored by rlp's avatar rlp Committed by Commit bot

[Hotword] Register audio history pref and use is in chrome://settings.

BUG=426640

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

Cr-Commit-Position: refs/heads/master@{#302671}
parent f12e0ba4
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
<div id="audio-logging" hidden> <div id="audio-logging" hidden>
<div class="checkbox controlled-setting-with-label"> <div class="checkbox controlled-setting-with-label">
<label> <label>
<input pref="hotword.audio_logging_enabled" type="checkbox"> <input pref="hotword.audio_history_enabled" type="checkbox">
<span i18n-content="hotwordAudioHistoryEnable"></span> <span i18n-content="hotwordAudioHistoryEnable"></span>
</label> </label>
</div> </div>
......
...@@ -111,6 +111,9 @@ void HotwordServiceFactory::RegisterProfilePrefs( ...@@ -111,6 +111,9 @@ void HotwordServiceFactory::RegisterProfilePrefs(
prefs->RegisterStringPref(prefs::kHotwordPreviousLanguage, prefs->RegisterStringPref(prefs::kHotwordPreviousLanguage,
std::string(), std::string(),
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
prefs->RegisterBooleanPref(prefs::kHotwordAudioHistoryEnabled,
false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
// Per-device settings (do not sync). // Per-device settings (do not sync).
prefs->RegisterBooleanPref(prefs::kHotwordSearchEnabled, prefs->RegisterBooleanPref(prefs::kHotwordSearchEnabled,
false, false,
......
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