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

Side by Side Diff: content/renderer/speech_recognition_dispatcher.cc

Issue 1143913003: Convert DCHECK validating that |request_id| was found to a CHECK in SpeechRecognitionDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/speech_recognition_dispatcher.h" 5 #include "content/renderer/speech_recognition_dispatcher.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/common/speech_recognition_messages.h" 9 #include "content/common/speech_recognition_messages.h"
10 #include "content/renderer/render_view_impl.h" 10 #include "content/renderer/render_view_impl.h"
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 void SpeechRecognitionDispatcher::ResetAudioSink() { 307 void SpeechRecognitionDispatcher::ResetAudioSink() {
308 #if defined(ENABLE_WEBRTC) 308 #if defined(ENABLE_WEBRTC)
309 speech_audio_sink_.reset(); 309 speech_audio_sink_.reset();
310 #endif 310 #endif
311 } 311 }
312 312
313 const WebSpeechRecognitionHandle& SpeechRecognitionDispatcher::GetHandleFromID( 313 const WebSpeechRecognitionHandle& SpeechRecognitionDispatcher::GetHandleFromID(
314 int request_id) { 314 int request_id) {
315 HandleMap::iterator iter = handle_map_.find(request_id); 315 HandleMap::iterator iter = handle_map_.find(request_id);
316 DCHECK(iter != handle_map_.end()); 316 CHECK(iter != handle_map_.end());
317 return iter->second; 317 return iter->second;
318 } 318 }
319 319
320 } // namespace content 320 } // namespace content
OLDNEW
« 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