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

Unified Diff: chrome/browser/offline_pages/prefetch/prefetch_service_factory.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
« no previous file with comments | « no previous file | components/offline_pages/core/prefetch/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc
diff --git a/chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc b/chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc
index 92eed1c40328e06a1fafd57f5aaf200c70c3f40c..eeb6acd72819d577fb2ba8eb2a4627acc278fc55 100644
--- a/chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc
+++ b/chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc
@@ -14,7 +14,6 @@
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h"
#include "components/offline_pages/core/prefetch/prefetch_gcm_app_handler.h"
-#include "components/offline_pages/core/prefetch/prefetch_in_memory_store.h"
#include "components/offline_pages/core/prefetch/prefetch_service_impl.h"
#include "components/offline_pages/core/prefetch/suggested_articles_observer.h"
#include "content/public/browser/browser_context.h"
@@ -47,12 +46,11 @@ KeyedService* PrefetchServiceFactory::BuildServiceInstanceFor(
base::MakeUnique<OfflineMetricsCollectorImpl>();
auto suggested_articles_observer =
base::MakeUnique<SuggestedArticlesObserver>(prefetch_dispatcher.get());
- auto in_memory_store = base::MakeUnique<PrefetchInMemoryStore>();
- return new PrefetchServiceImpl(
- std::move(offline_metrics_collector), std::move(prefetch_dispatcher),
- std::move(prefetch_gcm_app_handler), std::move(in_memory_store),
- std::move(suggested_articles_observer));
+ return new PrefetchServiceImpl(std::move(offline_metrics_collector),
+ std::move(prefetch_dispatcher),
+ std::move(prefetch_gcm_app_handler),
+ std::move(suggested_articles_observer));
}
} // namespace offline_pages
« no previous file with comments | « no previous file | components/offline_pages/core/prefetch/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698