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

Unified Diff: third_party/WebKit/Source/modules/mediasource/MediaSourceRegistry.cpp

Issue 2002073002: media: Replace wtf/Assertions.h macros in favor of base/logging.h macros (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix test failures Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(&registrable->registry() == this);
- ASSERT(isMainThread());
+ DCHECK_EQ(&registrable->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);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698