Chromium Code Reviews| 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 5b12e4443f6e20ab5b96b28de9ba227085c20b5c..2b8b6a5f7fbbaa83370654d48d47d7f2d15f95b2 100644 |
| --- a/components/offline_pages/background/request_coordinator.cc |
| +++ b/components/offline_pages/background/request_coordinator.cc |
| @@ -211,6 +211,13 @@ void RequestCoordinator::StopPrerendering(Offliner::RequestStatus stop_status) { |
| if (offliner_ && is_busy_) { |
| DCHECK(active_request_.get()); |
| offliner_->Cancel(); |
| + |
| + // If we timed out, let the offliner done callback handle it. |
|
dougarnett
2016/10/28 16:13:11
This will dramatically diminish the success rate f
Pete Williamson
2016/10/28 18:32:38
Done.
|
| + if (stop_status == Offliner::RequestStatus::REQUEST_COORDINATOR_TIMED_OUT) |
| + return; |
| + |
| + // Otherwise, this attempt never really had a chance to run, mark it |
| + // aborted. |
| AbortRequestAttempt(active_request_.get()); |
| } |