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

Unified Diff: third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp

Issue 2803733002: Convert ASSERT(foo) to DCHECK(foo) in platform/audio (Closed)
Patch Set: Mechanical change from ASSERT(foo) to DCHECK(foo) 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/audio/HRTFDatabase.cpp
diff --git a/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp b/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
index 76acca8a60d76a5c204afe2b911db5787514983e..278730595e0381000a407d109809c29d5fe6a3af 100644
--- a/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
+++ b/third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp
@@ -54,7 +54,7 @@ HRTFDatabase::HRTFDatabase(float sampleRate)
elevation += RawElevationAngleSpacing) {
std::unique_ptr<HRTFElevation> hrtfElevation =
HRTFElevation::createForSubject("Composite", elevation, sampleRate);
- ASSERT(hrtfElevation.get());
+ DCHECK(hrtfElevation.get());
if (!hrtfElevation.get())
return;
@@ -103,7 +103,7 @@ void HRTFDatabase::getKernelsFromAzimuthElevation(double azimuthBlend,
elevationIndex = m_elevations.size() - 1;
HRTFElevation* hrtfElevation = m_elevations[elevationIndex].get();
- ASSERT(hrtfElevation);
+ DCHECK(hrtfElevation);
if (!hrtfElevation) {
kernelL = 0;
kernelR = 0;

Powered by Google App Engine
This is Rietveld 408576698