Index: third_party/WebKit/Source/modules/mediasource/MediaSourceRegistry.cpp |
diff --git a/third_party/WebKit/Source/modules/mediasource/MediaSourceRegistry.cpp b/third_party/WebKit/Source/modules/mediasource/MediaSourceRegistry.cpp |
index 73f8115ef0ff5317c9f0c0f3e768036afc6981d0..9f7a2950e7dc0ae89296511b3280cc906ac6c9fc 100644 |
--- a/third_party/WebKit/Source/modules/mediasource/MediaSourceRegistry.cpp |
+++ b/third_party/WebKit/Source/modules/mediasource/MediaSourceRegistry.cpp |
@@ -37,15 +37,15 @@ namespace blink { |
MediaSourceRegistry& MediaSourceRegistry::registry() |
{ |
- ASSERT(isMainThread()); |
+ DCHECK(isMainThread()); |
DEFINE_STATIC_LOCAL(MediaSourceRegistry, instance, ()); |
return instance; |
} |
void MediaSourceRegistry::registerURL(SecurityOrigin*, const KURL& url, URLRegistrable* registrable) |
{ |
- ASSERT(®istrable->registry() == this); |
- ASSERT(isMainThread()); |
+ DCHECK_EQ(®istrable->registry(), this); |
+ DCHECK(isMainThread()); |
MediaSource* source = static_cast<MediaSource*>(registrable); |
source->addedToRegistry(); |
@@ -54,7 +54,7 @@ void MediaSourceRegistry::registerURL(SecurityOrigin*, const KURL& url, URLRegis |
void MediaSourceRegistry::unregisterURL(const KURL& url) |
{ |
- ASSERT(isMainThread()); |
+ DCHECK(isMainThread()); |
PersistentHeapHashMap<String, Member<MediaSource>>::iterator iter = m_mediaSources.find(url.getString()); |
if (iter == m_mediaSources.end()) |
return; |
@@ -66,7 +66,7 @@ void MediaSourceRegistry::unregisterURL(const KURL& url) |
URLRegistrable* MediaSourceRegistry::lookup(const String& url) |
{ |
- ASSERT(isMainThread()); |
+ DCHECK(isMainThread()); |
return m_mediaSources.get(url); |
} |