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

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

Issue 2326593002: [Offline Pages] Simple, mergable fix to no longer report a request completed when it is FOREGROUND_… (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | 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_coordinator.cc
diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc
index df0107acb800525627760f1697288e8a312fa638..3acd794c3927c226091ac498ca0df3944b51be17 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -492,11 +492,7 @@ void RequestCoordinator::OfflinerDoneCallback(const SavePageRequest& request,
// aborted cases to treat this way (eg, for Render Process Killed).
SavePageRequest updated_request(request);
AbortRequestAttempt(&updated_request);
- BackgroundSavePageResult notify_status =
- (status == Offliner::RequestStatus::FOREGROUND_CANCELED)
- ? BackgroundSavePageResult::FOREGROUND_CANCELED
- : BackgroundSavePageResult::PRERENDER_CANCELED;
- NotifyCompleted(updated_request, notify_status);
+ NotifyChanged(updated_request);
} else if (status == Offliner::RequestStatus::SAVED) {
// Remove the request from the queue if it succeeded.
RemoveAttemptedRequest(request, BackgroundSavePageResult::SUCCESS);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698