Index: webrtc/base/urlencode.cc |
diff --git a/webrtc/base/urlencode.cc b/webrtc/base/urlencode.cc |
index 8dc185dfb71ae357a1278b54ee9271a23d9923c6..bb508f46216ec5851bb2f0c605bf2a2924bc26d7 100644 |
--- a/webrtc/base/urlencode.cc |
+++ b/webrtc/base/urlencode.cc |
@@ -10,7 +10,7 @@ |
#include "webrtc/base/urlencode.h" |
-#include "webrtc/base/common.h" |
+#include "webrtc/base/checks.h" |
#include "webrtc/base/stringutils.h" |
static int HexPairValue(const char * code) { |
@@ -114,7 +114,7 @@ int InternalUrlEncode(const char *source, char *dest, unsigned int max, |
} |
source++; |
} |
- ASSERT(static_cast<unsigned int>(dest - start) < max); |
+ RTC_DCHECK_LT(static_cast<unsigned int>(dest - start), max); |
*dest = 0; |
return static_cast<int>(dest - start); |