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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaStream.cpp

Issue 1862163002: WebKit MediaStream cleanup: ASSERT-->DCHECK and ASSERT_NOT_REACHED-->NOTREACHED etc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted CHECK --> RELEASE_ASSERT and added TODO Created 4 years, 8 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/mediastream/MediaStream.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
index 8fa874cb42b83aa410ab20461a2e8f5cc09b168b..5731967baf6f6584ed09c96e4d009f3fe483f78e 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
@@ -63,7 +63,7 @@ MediaStream* MediaStream::create(ExecutionContext* context)
MediaStream* MediaStream::create(ExecutionContext* context, MediaStream* stream)
{
- ASSERT(stream);
+ DCHECK(stream);
MediaStreamTrackVector audioTracks;
MediaStreamTrackVector videoTracks;
@@ -319,7 +319,7 @@ ExecutionContext* MediaStream::getExecutionContext() const
void MediaStream::addRemoteTrack(MediaStreamComponent* component)
{
- ASSERT(component);
+ DCHECK(component);
if (m_stopped)
return;
@@ -345,7 +345,7 @@ void MediaStream::addRemoteTrack(MediaStreamComponent* component)
void MediaStream::removeRemoteTrack(MediaStreamComponent* component)
{
- ASSERT(component);
+ DCHECK(component);
if (m_stopped)
return;

Powered by Google App Engine
This is Rietveld 408576698