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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 2 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/editing/iterators/SimplifiedBackwardsTextIterator.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
index 0baa17de61116ad2af83413eac40fd4b49b9cc4c..74d859ac3678574a711bb1f39f07f3eae90bc67b 100644
--- a/third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
@@ -420,7 +420,7 @@ UChar SimplifiedBackwardsTextIteratorAlgorithm<Strategy>::characterAt(
unsigned index) const {
// TODO(xiaochengh): Mostly copied from TextIteratorTextState::characterAt.
// Should try to improve the code quality by reusing the code.
- ASSERT_WITH_SECURITY_IMPLICATION(index < static_cast<unsigned>(length()));
+ SECURITY_DCHECK(index < static_cast<unsigned>(length()));
if (!(index < static_cast<unsigned>(length())))
return 0;
if (m_singleCharacterBuffer) {

Powered by Google App Engine
This is Rietveld 408576698