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

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

Issue 2066593003: Add a general purpose facility for letting background tasks wait until (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: logical merge fix 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/android/java_sources.gni ('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 c7a5bdab4f274b84c8c647530272c814905a27f1..ffbd5bf3e536aae3aa385063c6b18f1f45ffa8c0 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -74,11 +74,6 @@ void RequestCoordinator::UpdateRequestCallback(
// Called by the request picker when a request has been picked.
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);
}
@@ -153,7 +148,6 @@ void RequestCoordinator::OfflinerDoneCallback(const SavePageRequest& request,
// Start a request if we have time.
TryNextRequest();
-
}
} // namespace offline_pages
« no previous file with comments | « chrome/android/java_sources.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698