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

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

Issue 2054913002: hook up background task's "startProcessing" from Java to request_coordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback per DougArnett Created 4 years, 6 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 | « chrome/browser/android/offline_pages/background_scheduler_bridge.cc ('k') | 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 3481218caf43d8f77796d78ebf46eb9522924a1b..0a0ebdb23c01345f3a6a8547ce4dd4213c6f98de 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -69,6 +69,11 @@ void RequestCoordinator::AddRequestResultCallback(
}
void RequestCoordinator::RequestPicked(const SavePageRequest& request) {
+ Scheduler::TriggerCondition conditions;
+
+ // Ensure that the scheduler has actively scheduled a task.
+ scheduler_->Schedule(conditions);
+
// Send the request on to the offliner.
SendRequestToOffliner(request);
}
« no previous file with comments | « chrome/browser/android/offline_pages/background_scheduler_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698