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

Unified Diff: base/i18n/streaming_utf8_validator.cc

Issue 189603007: Let DCHECK in non-official-release build be opt-in with dcheck_always_on=1 only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: base/i18n/streaming_utf8_validator.cc
diff --git a/base/i18n/streaming_utf8_validator.cc b/base/i18n/streaming_utf8_validator.cc
index 3838c9512434f74db4169969a101de3be265234c..1179e835de8594f1090dfceb1c6c716877704804 100644
--- a/base/i18n/streaming_utf8_validator.cc
+++ b/base/i18n/streaming_utf8_validator.cc
@@ -15,8 +15,7 @@ namespace base {
namespace {
uint8 StateTableLookup(uint8 offset) {
- // Skip the bounds check on non-debug builds so that it isn't necessary to set
- // LOGGING_IS_OFFICIAL_BUILD just to do a performance test.
+ // Skip the bounds check on non-debug builds.
if (logging::DEBUG_MODE)
Xianzhu 2014/03/07 22:40:38 I'm not sure about this. The original intent was t
Nico 2014/03/07 22:58:35 I think so.
Xianzhu 2014/03/07 23:29:36 Removed the check.
DCHECK_LT(offset, internal::kUtf8ValidatorTablesSize);
return internal::kUtf8ValidatorTables[offset];
« no previous file with comments | « base/base_switches.cc ('k') | base/logging.h » ('j') | base/logging_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698