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

Unified Diff: net/base/backoff_entry.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: net/base/backoff_entry.cc
diff --git a/net/base/backoff_entry.cc b/net/base/backoff_entry.cc
index b1826b7af469b4d72cfccd6ad849173ceb1f24fe..003a7899a39d943a2d8737d2cc98a306b984a938 100644
--- a/net/base/backoff_entry.cc
+++ b/net/base/backoff_entry.cc
@@ -50,8 +50,8 @@ void BackoffEntry::InformOfRequest(bool succeeded) {
base::TimeDelta delay;
if (policy_->always_use_initial_delay)
delay = base::TimeDelta::FromMilliseconds(policy_->initial_delay_ms);
- exponential_backoff_release_time_ = std::max(
- ImplGetTimeNow() + delay, exponential_backoff_release_time_);
+ exponential_backoff_release_time_ =
+ std::max(ImplGetTimeNow() + delay, exponential_backoff_release_time_);
}
}
@@ -90,8 +90,8 @@ bool BackoffEntry::CanDiscard() const {
if (failure_count_ > 0) {
// Need to keep track of failures until maximum back-off period
// has passed (since further failures can add to back-off).
- return unused_since_ms >= std::max(policy_->maximum_backoff_ms,
- policy_->entry_lifetime_ms);
+ return unused_since_ms >=
+ std::max(policy_->maximum_backoff_ms, policy_->entry_lifetime_ms);
}
// Otherwise, consider the entry is outdated if it hasn't been used for the
@@ -137,8 +137,8 @@ base::TimeTicks BackoffEntry::CalculateReleaseTime() const {
delay -= base::RandDouble() * policy_->jitter_factor * delay;
const int64 kMaxInt64 = std::numeric_limits<int64>::max();
- int64 delay_int = (delay > kMaxInt64) ?
- kMaxInt64 : static_cast<int64>(delay + 0.5);
+ int64 delay_int =
+ (delay > kMaxInt64) ? kMaxInt64 : static_cast<int64>(delay + 0.5);
// Ensure that we do not exceed maximum delay.
if (policy_->maximum_backoff_ms >= 0)
« no previous file with comments | « net/base/auth.cc ('k') | net/base/backoff_entry_unittest.cc » ('j') | net/base/mime_sniffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698