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

Unified Diff: components/offline_pages/core/prefetch/prefetch_dispatcher_impl.cc

Issue 2920083002: Prefetching: Introduce store commands abstractions to be used by tasks. (Closed)
Patch Set: Minor changes Created 3 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
Index: components/offline_pages/core/prefetch/prefetch_dispatcher_impl.cc
diff --git a/components/offline_pages/core/prefetch/prefetch_dispatcher_impl.cc b/components/offline_pages/core/prefetch/prefetch_dispatcher_impl.cc
index ae20c6239da74ffa9e481a3a30ab8236bc0dad85..55b95a198415bbc2d8a884140eab01269a9d673d 100644
--- a/components/offline_pages/core/prefetch/prefetch_dispatcher_impl.cc
+++ b/components/offline_pages/core/prefetch/prefetch_dispatcher_impl.cc
@@ -34,12 +34,13 @@ void PrefetchDispatcherImpl::SetService(PrefetchService* service) {
}
void PrefetchDispatcherImpl::AddCandidatePrefetchURLs(
+ const std::string& name_space,
const std::vector<PrefetchURL>& prefetch_urls) {
if (!IsPrefetchingOfflinePagesEnabled())
return;
- std::unique_ptr<Task> add_task = base::MakeUnique<AddUniqueUrlsTask>(
- service_->GetPrefetchStore(), prefetch_urls);
+ std::unique_ptr<Task> add_task =
+ base::MakeUnique<AddUniqueUrlsTask>(name_space, prefetch_urls);
task_queue_.AddTask(std::move(add_task));
}

Powered by Google App Engine
This is Rietveld 408576698