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

Unified Diff: components/offline_pages/background/request_picker.cc

Issue 2191733004: [Offline Pages] Configure for no retries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « components/offline_pages/background/request_coordinator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/background/request_picker.cc
diff --git a/components/offline_pages/background/request_picker.cc b/components/offline_pages/background/request_picker.cc
index c6ac59ebb38d5d2a8c1f4c029567cb260bd5aef3..d6014069e8cdf746b07abe4a5dbf34ae97839563 100644
--- a/components/offline_pages/background/request_picker.cc
+++ b/components/offline_pages/background/request_picker.cc
@@ -111,7 +111,7 @@ bool RequestPicker::RequestConditionsSatisfied(const SavePageRequest& request) {
// eligible to try again.
// TODO(petewil): Instead, we should have code to remove the page from the
// queue after the last retry.
- if (request.attempt_count() >= policy_->GetMaxRetries())
+ if (request.attempt_count() > policy_->GetMaxTries())
return false;
// If the request is expired, do not consider it.
« no previous file with comments | « components/offline_pages/background/request_coordinator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698