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

Unified Diff: third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp

Issue 2811463002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/exported (Closed)
Patch Set: rebase Created 3 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/platform/exported/WebMediaStreamTrack.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp b/third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp
index 30cd5053e90af8f9776abe0bc535128ef302280b..2c53633d92f670e39a7627f883f029f0312987df 100644
--- a/third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp
@@ -82,12 +82,12 @@ WebMediaStreamTrack::operator MediaStreamComponent*() const {
}
bool WebMediaStreamTrack::IsEnabled() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return private_->Enabled();
}
bool WebMediaStreamTrack::IsMuted() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return private_->Muted();
}
@@ -97,12 +97,12 @@ WebMediaStreamTrack::ContentHintType WebMediaStreamTrack::ContentHint() const {
}
WebString WebMediaStreamTrack::Id() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return private_->Id();
}
WebMediaStreamSource WebMediaStreamTrack::Source() const {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
return WebMediaStreamSource(private_->Source());
}
@@ -114,14 +114,14 @@ WebMediaStreamTrack::TrackData* WebMediaStreamTrack::GetTrackData() const {
}
void WebMediaStreamTrack::SetTrackData(TrackData* extra_data) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
private_->SetTrackData(
WTF::WrapUnique(new TrackDataContainer(WTF::WrapUnique(extra_data))));
}
void WebMediaStreamTrack::SetSourceProvider(WebAudioSourceProvider* provider) {
- ASSERT(!private_.IsNull());
+ DCHECK(!private_.IsNull());
private_->SetSourceProvider(provider);
}

Powered by Google App Engine
This is Rietveld 408576698