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

Unified Diff: third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp

Issue 1828163002: Remove ASSERT_ARG(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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/platform/text/TextBreakIteratorICU.cpp
diff --git a/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp b/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
index a00f757eda55baa93fdc1e529ea98f6ac409c4d0..9691763b288d72ea081061fb9c23740dd4dbbef4 100644
--- a/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
+++ b/third_party/WebKit/Source/platform/text/TextBreakIteratorICU.cpp
@@ -82,7 +82,7 @@ public:
void put(icu::BreakIterator* iterator)
{
- ASSERT_ARG(iterator, m_vendedIterators.contains(iterator));
+ DCHECK(m_vendedIterators.contains(iterator));
if (m_pool.size() == capacity) {
delete(m_pool[0].second);
@@ -594,8 +594,7 @@ TextBreakIterator* acquireLineBreakIterator(const UChar* string, int length, con
void releaseLineBreakIterator(TextBreakIterator* iterator)
{
- ASSERT_ARG(iterator, iterator);
-
+ DCHECK(iterator);
LineBreakIteratorPool::sharedPool().put(iterator);
}

Powered by Google App Engine
This is Rietveld 408576698