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

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

Issue 2637563002: [Offline Pages] Snapshotting on timeout of last retry. (Closed)
Patch Set: Created 3 years, 11 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/core/background/request_coordinator.cc
diff --git a/components/offline_pages/core/background/request_coordinator.cc b/components/offline_pages/core/background/request_coordinator.cc
index fb066b6bafa83631f074bcdba9162491fcba63b0..8e7518d045ba34512cc721a10770f06e8d456260 100644
--- a/components/offline_pages/core/background/request_coordinator.cc
+++ b/components/offline_pages/core/background/request_coordinator.cc
@@ -514,6 +514,8 @@ void RequestCoordinator::StopProcessing(Offliner::RequestStatus stop_status) {
void RequestCoordinator::HandleWatchdogTimeout() {
Offliner::RequestStatus watchdog_status =
Offliner::REQUEST_COORDINATOR_TIMED_OUT;
+ if (offliner_->HandleTimeout(*active_request_.get()))
+ return;
StopPrerendering(watchdog_status);
TryNextRequest(!kStartOfProcessing);
}

Powered by Google App Engine
This is Rietveld 408576698