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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControls.cpp

Issue 2001013003: 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: address nit 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 | « third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp ('k') | 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/shadow/MediaControls.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
index bd95d98353e658cdb3c1f3a8f19b80ccb1a2c971..c2931fc698a748d0ca5d495dd9e2909e20ca029a 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
@@ -81,14 +81,14 @@ public:
explicit BatchedControlUpdate(MediaControls* controls)
: m_controls(controls)
{
- ASSERT(isMainThread());
- ASSERT(s_batchDepth >= 0);
+ DCHECK(isMainThread());
+ DCHECK_GE(s_batchDepth, 0);
++s_batchDepth;
}
~BatchedControlUpdate()
{
- ASSERT(isMainThread());
- ASSERT(s_batchDepth > 0);
+ DCHECK(isMainThread());
+ DCHECK_GT(s_batchDepth, 0);
if (!(--s_batchDepth))
m_controls->computeWhichControlsFit();
}
« no previous file with comments | « third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698