Index: chrome/browser/resources/app_list/speech_manager.js |
diff --git a/chrome/browser/resources/app_list/speech_manager.js b/chrome/browser/resources/app_list/speech_manager.js |
index 1c5f35d17c03776001901de3429dd048570ceebf..b316dd61329ce3e90d6e0ff2042f12d6ffc431e8 100644 |
--- a/chrome/browser/resources/app_list/speech_manager.js |
+++ b/chrome/browser/resources/app_list/speech_manager.js |
@@ -87,10 +87,12 @@ cr.define('speech', function() { |
* @param {boolean} isFinal Whether the result is final or not. |
*/ |
SpeechManager.prototype.onSpeechRecognized = function(result, isFinal) { |
- // TODO(mukai): updates the UI, make requests, and/or sends the result |
- // to the web_ui handler. |
console.log('speech result: ' + result + ' ' + |
(isFinal ? 'final' : 'interim')); |
+ if (isFinal) { |
+ chrome.send('search', [result]); |
+ this.speechRecognitionManager_.stop(); |
+ } |
}; |
/** |