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

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

Issue 2883413002: [Offline pages] Reporting completed attempt when Chrome is killed (Closed)
Patch Set: Udpating the histogram enum definition: Created 3 years, 7 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 | « components/offline_pages/core/background/offliner.h ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 87e3c97c9713233ba7c86e9c70e3c28aafc66145..034643e3f22c572c07c161ef3204587239fc2a6d 100644
--- a/components/offline_pages/core/background/request_coordinator.cc
+++ b/components/offline_pages/core/background/request_coordinator.cc
@@ -516,8 +516,10 @@ void RequestCoordinator::UpdateMultipleRequestsCallback(
void RequestCoordinator::ReconcileCallback(
std::unique_ptr<UpdateRequestsResult> result) {
- for (const auto& request : result->updated_items)
+ for (const auto& request : result->updated_items) {
+ RecordOfflinerResult(request, Offliner::RequestStatus::BROWSER_KILLED);
NotifyChanged(request);
+ }
}
void RequestCoordinator::HandleRemovedRequestsAndCallback(
« no previous file with comments | « components/offline_pages/core/background/offliner.h ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698