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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSourceElement.cpp

Issue 1991043003: 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: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLSourceElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp b/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp
index 63d5c6bfdaaf9328070f542ed8249652554ebfde..a1269b76ee8f77369d94b622cab1ba0ca055aab0 100644
--- a/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSourceElement.cpp
@@ -36,6 +36,8 @@
#include "core/html/HTMLPictureElement.h"
#include "platform/Logging.h"
+#define SOURCE_LOG_LEVEL 3
+
namespace blink {
using namespace HTMLNames;
@@ -69,7 +71,7 @@ inline HTMLSourceElement::HTMLSourceElement(Document& document)
: HTMLElement(sourceTag, document)
, m_listener(new Listener(this))
{
- WTF_LOG(Media, "HTMLSourceElement::HTMLSourceElement - %p", this);
+ DVLOG(SOURCE_LOG_LEVEL) << "HTMLSourceElement - " << (void*)this;
}
DEFINE_NODE_FACTORY(HTMLSourceElement)
@@ -136,20 +138,20 @@ void HTMLSourceElement::setType(const AtomicString& type)
void HTMLSourceElement::scheduleErrorEvent()
{
- WTF_LOG(Media, "HTMLSourceElement::scheduleErrorEvent - %p", this);
+ DVLOG(SOURCE_LOG_LEVEL) << "scheduleErrorEvent - " << (void*)this;
sourceErrorEventSender().dispatchEventSoon(this);
}
void HTMLSourceElement::cancelPendingErrorEvent()
{
- WTF_LOG(Media, "HTMLSourceElement::cancelPendingErrorEvent - %p", this);
+ DVLOG(SOURCE_LOG_LEVEL) << "cancelPendingErrorEvent - " << (void*)this;
sourceErrorEventSender().cancelEvent(this);
}
void HTMLSourceElement::dispatchPendingEvent(SourceEventSender* eventSender)
{
ASSERT_UNUSED(eventSender, eventSender == &sourceErrorEventSender());
- WTF_LOG(Media, "HTMLSourceElement::dispatchPendingEvent - %p", this);
+ DVLOG(SOURCE_LOG_LEVEL) << "dispatchPendingEvent - " << (void*)this;
dispatchEvent(Event::createCancelable(EventTypeNames::error));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698