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

Unified Diff: third_party/cacheinvalidation/src/google/cacheinvalidation/impl/exponential-backoff-delay-generator.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: third_party/cacheinvalidation/src/google/cacheinvalidation/impl/exponential-backoff-delay-generator.h
diff --git a/third_party/cacheinvalidation/src/google/cacheinvalidation/impl/exponential-backoff-delay-generator.h b/third_party/cacheinvalidation/src/google/cacheinvalidation/impl/exponential-backoff-delay-generator.h
index cf36a66b14f45437d0d43469cfb3f7bba6b81a9d..b4c15589f9fd2b3a861ed32bea0b8c7273e1e5da 100644
--- a/third_party/cacheinvalidation/src/google/cacheinvalidation/impl/exponential-backoff-delay-generator.h
+++ b/third_party/cacheinvalidation/src/google/cacheinvalidation/impl/exponential-backoff-delay-generator.h
@@ -40,10 +40,11 @@ class ExponentialBackoffDelayGenerator {
int max_exponential_factor) :
initial_max_delay_(initial_max_delay),
max_exponential_factor_(max_exponential_factor), random_(random) {
- CHECK_GT(max_exponential_factor_, 0) << "max factor must be positive";
+ // max factor must be positive
+ CHECK_GT(max_exponential_factor_, 0);
CHECK(random_ != NULL);
- CHECK(initial_max_delay > Scheduler::NoDelay()) <<
- "Initial delay must be positive";
+ // Initial delay must be positive
+ CHECK(initial_max_delay > Scheduler::NoDelay());
Reset();
}

Powered by Google App Engine
This is Rietveld 408576698