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

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

Issue 2196293002: Skips processing more SavePageLater requests in current processing window when one completes unsucc… (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
Index: components/offline_pages/background/request_coordinator.cc
diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc
index 5876d8386d79b7c3834f6cf9b7d72bd22f8c38cd..39cb7e6bf35e724e31c17fb8d282bfa8949fd8d8 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -228,7 +228,15 @@ void RequestCoordinator::OfflinerDoneCallback(const SavePageRequest& request,
weak_ptr_factory_.GetWeakPtr()));
}
- TryNextRequest();
+ // Determine whether we might try another request in this
+ // processing window based on how the previous request completed.
+ //
+ // TODO(dougarnett): Support trying another request for some
+ // whitelisted types of rendering failures (but not for cancels
+ // or rendering process killed).
+ if (status == Offliner::RequestStatus::SAVED) {
Pete Williamson 2016/08/01 19:56:27 Let's fix this right while we are here. THere aren
+ TryNextRequest();
+ }
}
const Scheduler::TriggerConditions

Powered by Google App Engine
This is Rietveld 408576698