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

Unified Diff: third_party/WebKit/Source/platform/exported/WebAudioBus.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/WebAudioBus.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebAudioBus.cpp b/third_party/WebKit/Source/platform/exported/WebAudioBus.cpp
index 18e5d97efad0c516f2797c8bd6205e1c2f0f5cd8..7b7495f557a5e0e226cddb4e622d8b36d5fee47b 100644
--- a/third_party/WebKit/Source/platform/exported/WebAudioBus.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebAudioBus.cpp
@@ -48,9 +48,9 @@ void WebAudioBus::Initialize(unsigned number_of_channels,
}
void WebAudioBus::ResizeSmaller(size_t new_length) {
- ASSERT(private_);
+ DCHECK(private_);
if (private_) {
- ASSERT(new_length <= length());
+ DCHECK_LE(new_length, length());
private_->ResizeSmaller(new_length);
}
}
@@ -83,7 +83,7 @@ double WebAudioBus::SampleRate() const {
float* WebAudioBus::ChannelData(unsigned channel_index) {
if (!private_)
return 0;
- ASSERT(channel_index < NumberOfChannels());
+ DCHECK_LT(channel_index, NumberOfChannels());
return private_->Channel(channel_index)->MutableData();
}

Powered by Google App Engine
This is Rietveld 408576698