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

Unified Diff: chrome/browser/speech/speech_input_extension_manager.cc

Issue 9663066: Refactoring of chrome speech recognition architecture (CL1.3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased from master. Created 8 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/speech/speech_input_extension_manager.cc
diff --git a/chrome/browser/speech/speech_input_extension_manager.cc b/chrome/browser/speech/speech_input_extension_manager.cc
index 7bfc14fced7cedf69fd40b0d0c9a4113b5627f46..fdcbf70e058b09b71636652bfb0a20f6f1231470 100644
--- a/chrome/browser/speech/speech_input_extension_manager.cc
+++ b/chrome/browser/speech/speech_input_extension_manager.cc
@@ -340,10 +340,10 @@ void SpeechInputExtensionManager::DidStartReceivingAudioOnUIThread() {
}
void SpeechInputExtensionManager::OnRecognitionError(
- int caller_id, const content::SpeechRecognitionErrorCode& error) {
+ int caller_id, const content::SpeechRecognitionError& error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DCHECK_EQ(caller_id, kSpeechCallerId);
- VLOG(1) << "OnRecognitionError: " << error;
+ VLOG(1) << "OnRecognitionError: " << error.code;
base::AutoLock auto_lock(state_lock_);
if (state_ == kShutdown)
@@ -355,7 +355,7 @@ void SpeechInputExtensionManager::OnRecognitionError(
std::string event_error_code;
bool report_to_event = true;
- switch (error) {
+ switch (error.code) {
case content::SPEECH_RECOGNITION_ERROR_NONE:
break;

Powered by Google App Engine
This is Rietveld 408576698