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

Unified Diff: net/quic/chromium/quic_utils_chromium.h

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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: net/quic/chromium/quic_utils_chromium.h
diff --git a/net/quic/chromium/quic_utils_chromium.h b/net/quic/chromium/quic_utils_chromium.h
index 03b5b3911e0b5bac40d7b99b9ffb66d1f942a240..ed4545ecbe0a881920ca8abf0d8a645008dd7e20 100644
--- a/net/quic/chromium/quic_utils_chromium.h
+++ b/net/quic/chromium/quic_utils_chromium.h
@@ -35,7 +35,8 @@ const typename Collection::value_type::second_type& FindOrDie(
const Collection& collection,
const typename Collection::value_type::first_type& key) {
typename Collection::const_iterator it = collection.find(key);
- CHECK(it != collection.end()) << "Map key not found: " << key;
+ // Map key not found.
+ CHECK(it != collection.end());
return it->second;
}
@@ -45,7 +46,8 @@ typename Collection::value_type::second_type& FindOrDie(
Collection& collection, // NOLINT
const typename Collection::value_type::first_type& key) {
typename Collection::iterator it = collection.find(key);
- CHECK(it != collection.end()) << "Map key not found: " << key;
+ // Map key not found.
+ CHECK(it != collection.end());
return it->second;
}

Powered by Google App Engine
This is Rietveld 408576698