Index: chrome/browser/resources/hotword/manager.js |
diff --git a/chrome/browser/resources/hotword/manager.js b/chrome/browser/resources/hotword/manager.js |
index dfe4c7ef860388f86c02b934f2a01e6a28ff7ff0..0fc364b428fc63630828edd15d145da83c08b4a8 100644 |
--- a/chrome/browser/resources/hotword/manager.js |
+++ b/chrome/browser/resources/hotword/manager.js |
@@ -33,12 +33,15 @@ |
// Detect when the shared module containing the NaCL module and language model |
// is installed. |
chrome.management.onInstalled.addListener(function(info) { |
- if (info.id == hotword.constants.SHARED_MODULE_ID) |
+ if (info.id == hotword.constants.SHARED_MODULE_ID) { |
+ hotword.debug('Shared module installed, reloading extension.'); |
chrome.runtime.reload(); |
+ } |
}); |
// Detect when a session has requested to be started and stopped. |
chrome.hotwordPrivate.onHotwordSessionRequested.addListener(function() { |
+ hotword.debug('hotwordPrivate.onHotwordSessionRequested'); |
// TODO(amistry): This event should change state depending on whether the |
// user has enabled always-on hotwording. But for now, always signal the |
// start of a hotwording session. This allows this extension to work with |
@@ -51,6 +54,7 @@ |
}); |
chrome.hotwordPrivate.onHotwordSessionStopped.addListener(function() { |
+ hotword.debug('hotwordPrivate.onHotwordSessionStopped'); |
stateManager.stopSession(hotword.constants.SessionSource.LAUNCHER); |
chrome.hotwordPrivate.setHotwordSessionState(false, function() {}); |
}); |