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

Unified Diff: third_party/WebKit/Source/core/html/track/vtt/VTTScanner.h

Issue 2003433005: Reland "media/track: 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 comments 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
Index: third_party/WebKit/Source/core/html/track/vtt/VTTScanner.h
diff --git a/third_party/WebKit/Source/core/html/track/vtt/VTTScanner.h b/third_party/WebKit/Source/core/html/track/vtt/VTTScanner.h
index b250eb5ea90becb9bf4495d4043df1e5c4c86d23..903442c11a4205881e79a813e110ae3739dab213 100644
--- a/third_party/WebKit/Source/core/html/track/vtt/VTTScanner.h
+++ b/third_party/WebKit/Source/core/html/track/vtt/VTTScanner.h
@@ -216,19 +216,19 @@ inline VTTScanner::Run VTTScanner::collectUntil()
inline void VTTScanner::seekTo(Position position)
{
- ASSERT(position <= end());
+ DCHECK_LE(position, end());
m_data.characters8 = position;
}
inline UChar VTTScanner::currentChar() const
{
- ASSERT(getPosition() < end());
+ DCHECK_LT(getPosition(), end());
return m_is8Bit ? *m_data.characters8 : *m_data.characters16;
}
inline void VTTScanner::advance(unsigned amount)
{
- ASSERT(getPosition() < end());
+ DCHECK_LT(getPosition(), end());
if (m_is8Bit)
m_data.characters8 += amount;
else

Powered by Google App Engine
This is Rietveld 408576698