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

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

Issue 10968014: Merge 157777 - Speech Input: always abort when user clicks outside speech bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1229/src/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc
===================================================================
--- chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (revision 157777)
+++ chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc (working copy)
@@ -273,11 +273,8 @@
GetBubbleController()->CloseBubble();
last_session_config_.reset();
- // If the user clicks outside the bubble while capturing audio we abort the
- // session. Otherwise, i.e. audio capture is ended and we are just waiting for
- // results, this activity is carried silently in background.
- if (SpeechRecognitionManager::GetInstance()->IsCapturingAudio())
- SpeechRecognitionManager::GetInstance()->AbortSession(session_id);
+ // Clicking outside the bubble means we should abort.
+ SpeechRecognitionManager::GetInstance()->AbortSession(session_id);
}
void ChromeSpeechRecognitionManagerDelegate::RestartLastSession() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698