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

Unified Diff: components/metrics/leak_detector/leak_detector.cc

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: components/metrics/leak_detector/leak_detector.cc
diff --git a/components/metrics/leak_detector/leak_detector.cc b/components/metrics/leak_detector/leak_detector.cc
index 800ff3b00cd99085fc406c75714d3c0c8363fd5a..c2daa5eeb2c069358a09bcba987dfd5c3d684cf7 100644
--- a/components/metrics/leak_detector/leak_detector.cc
+++ b/components/metrics/leak_detector/leak_detector.cc
@@ -194,7 +194,8 @@ void LeakDetector::Init(const MemoryLeakReportProto::Params& params,
// The initialization should be done only once. Check for this by examining
// whether |impl_| has already been initialized.
- CHECK(!impl_.get()) << "Cannot initialize LeakDetector more than once!";
+ // Cannot initialize LeakDetector more than once!
+ CHECK(!impl_.get());
impl_.reset(new leak_detector::LeakDetectorImpl(
mapping.addr, mapping.size, params.size_suspicion_threshold(),
params.call_stack_suspicion_threshold()));

Powered by Google App Engine
This is Rietveld 408576698