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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechRecognition.cpp

Issue 2879773002: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules (Closed)
Patch Set: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/speech/SpeechRecognition.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechRecognition.cpp b/third_party/WebKit/Source/modules/speech/SpeechRecognition.cpp
index 21c26a6215db3514fe14c929e29864c1c0047b69..d6ef052bb0c80977ce4ace774756e4266f20c3f2 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechRecognition.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechRecognition.cpp
@@ -37,7 +37,8 @@
namespace blink {
SpeechRecognition* SpeechRecognition::Create(ExecutionContext* context) {
- ASSERT(context && context->IsDocument());
+ DCHECK(context);
+ DCHECK(context->IsDocument());
Document* document = ToDocument(context);
DCHECK(document);
return new SpeechRecognition(document->GetPage(), context);

Powered by Google App Engine
This is Rietveld 408576698