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

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

Issue 2637563002: [Offline Pages] Snapshotting on timeout of last retry. (Closed)
Patch Set: merging with master again Created 3 years, 10 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 83a844b09803805444ca8d8cfd86901be7869443..aaa2821351ed4d4dfec0a07d9d6ef3f54ba9ec79 100644
--- a/components/offline_pages/core/background/request_coordinator.cc
+++ b/components/offline_pages/core/background/request_coordinator.cc
@@ -504,6 +504,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