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(); |
} |