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

Unified Diff: third_party/WebKit/Source/platform/text/TextRun.h

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/platform/text/TextRun.h
diff --git a/third_party/WebKit/Source/platform/text/TextRun.h b/third_party/WebKit/Source/platform/text/TextRun.h
index aba26fbc1d9d895f560ee38fda00ab0caa01888a..bc0aef1cebd67f623386a6a823b1ee13560ba42f 100644
--- a/third_party/WebKit/Source/platform/text/TextRun.h
+++ b/third_party/WebKit/Source/platform/text/TextRun.h
@@ -159,16 +159,16 @@ class PLATFORM_EXPORT TextRun final {
}
UChar operator[](unsigned i) const {
- ASSERT_WITH_SECURITY_IMPLICATION(i < m_len);
+ SECURITY_DCHECK(i < m_len);
return is8Bit() ? m_data.characters8[i] : m_data.characters16[i];
}
const LChar* data8(unsigned i) const {
- ASSERT_WITH_SECURITY_IMPLICATION(i < m_len);
+ SECURITY_DCHECK(i < m_len);
ASSERT(is8Bit());
return &m_data.characters8[i];
}
const UChar* data16(unsigned i) const {
- ASSERT_WITH_SECURITY_IMPLICATION(i < m_len);
+ SECURITY_DCHECK(i < m_len);
ASSERT(!is8Bit());
return &m_data.characters16[i];
}

Powered by Google App Engine
This is Rietveld 408576698