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

Unified Diff: chrome/browser/resources/hotword/manager.js

Issue 1023063004: Hotword: Check for the existence of a speaker model. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Typo Created 5 years, 9 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/hotword/manager.js
diff --git a/chrome/browser/resources/hotword/manager.js b/chrome/browser/resources/hotword/manager.js
index 3f092dc6dea7be8854694a5340951d3533384b91..d186a3f424b2ef9d7dc615277487fce700c69553 100644
--- a/chrome/browser/resources/hotword/manager.js
+++ b/chrome/browser/resources/hotword/manager.js
@@ -39,6 +39,11 @@
hotword.TrainingManager.handleDeleteSpeakerModel();
});
+ // Detect a request for the speaker model existence.
+ chrome.hotwordPrivate.onSpeakerModelExists.addListener(function() {
+ hotword.TrainingManager.handleSpeakerModelExists();
+ });
+
// Detect when the shared module containing the NaCL module and language model
// is installed.
chrome.management.onInstalled.addListener(function(info) {

Powered by Google App Engine
This is Rietveld 408576698