Index: chrome/browser/resources/hotword_audio_verification/main.js |
diff --git a/chrome/browser/resources/hotword_audio_verification/main.js b/chrome/browser/resources/hotword_audio_verification/main.js |
index c180e0732dc54560cc21b9c5057cbc87be29400c..c28e8008f20e60e9f142e9db1e33bf75186042db 100644 |
--- a/chrome/browser/resources/hotword_audio_verification/main.js |
+++ b/chrome/browser/resources/hotword_audio_verification/main.js |
@@ -40,7 +40,6 @@ document.addEventListener('DOMContentLoaded', function() { |
}); |
$('hw-agree-button').addEventListener('click', function(e) { |
- // TODO(kcarattini): Set the Audio History setting. |
flow.advanceStep(); |
e.stopPropagation(); |
}); |
@@ -48,8 +47,14 @@ document.addEventListener('DOMContentLoaded', function() { |
// TODO(kcarattini): Remove this once speech training is implemented. The |
// way to get to the next page will be to complete the speech training. |
$('training').addEventListener('click', function(e) { |
- // TODO(kcarattini): Set the always-on-hotword setting. |
- flow.advanceStep(); |
+ assert(chrome.hotwordPrivate); |
Dan Beam
2014/09/23 18:45:18
can you just remove this as chrome.hotwordPrivate.
kcarattini
2014/09/23 23:56:50
Done.
|
+ if (chrome.hotwordPrivate.setAudioLoggingEnabled) |
+ chrome.hotwordPrivate.setAudioLoggingEnabled(true, function() {}); |
+ |
+ if (chrome.hotwordPrivate.setHotwordAlwaysOnSearchEnabled) { |
+ chrome.hotwordPrivate.setHotwordAlwaysOnSearchEnabled(true, |
+ flow.advanceStep.bind(flow)); |
+ } |
e.stopPropagation(); |
}); |