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

Unified Diff: components/offline_pages/core/prefetch/prefetch_service_test_taco.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_service_test_taco.cc
diff --git a/components/offline_pages/core/prefetch/prefetch_service_test_taco.cc b/components/offline_pages/core/prefetch/prefetch_service_test_taco.cc
index 4161a077a215ce0bcf744746ab9d04b85a9bec1f..96c67830f01c8f1bf3b5f33da57bd177ff4143c3 100644
--- a/components/offline_pages/core/prefetch/prefetch_service_test_taco.cc
+++ b/components/offline_pages/core/prefetch/prefetch_service_test_taco.cc
@@ -10,7 +10,6 @@
#include "components/offline_pages/core/prefetch/prefetch_dispatcher.h"
#include "components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h"
#include "components/offline_pages/core/prefetch/prefetch_gcm_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 "components/offline_pages/core/prefetch/test_offline_metrics_collector.h"
@@ -22,7 +21,6 @@ PrefetchServiceTestTaco::PrefetchServiceTestTaco() {
metrics_collector_ = base::MakeUnique<TestOfflineMetricsCollector>();
dispatcher_ = base::MakeUnique<PrefetchDispatcherImpl>();
gcm_handler_ = base::MakeUnique<TestPrefetchGCMHandler>();
- store_ = base::MakeUnique<PrefetchInMemoryStore>();
}
PrefetchServiceTestTaco::~PrefetchServiceTestTaco() = default;
@@ -45,12 +43,6 @@ void PrefetchServiceTestTaco::SetPrefetchGCMHandler(
gcm_handler_ = std::move(gcm_handler);
}
-void PrefetchServiceTestTaco::SetPrefetchStore(
- std::unique_ptr<PrefetchStore> store) {
- CHECK(!prefetch_service_);
- store_ = std::move(store);
-}
-
void PrefetchServiceTestTaco::SetSuggestedArticlesObserver(
std::unique_ptr<SuggestedArticlesObserver> suggested_articles_observer) {
CHECK(!prefetch_service_);
@@ -60,8 +52,7 @@ void PrefetchServiceTestTaco::SetSuggestedArticlesObserver(
void PrefetchServiceTestTaco::CreatePrefetchService() {
prefetch_service_ = base::MakeUnique<PrefetchServiceImpl>(
std::move(metrics_collector_), std::move(dispatcher_),
- std::move(gcm_handler_), std::move(store_),
- std::move(suggested_articles_observer_));
+ std::move(gcm_handler_), std::move(suggested_articles_observer_));
}
} // namespace offline_page

Powered by Google App Engine
This is Rietveld 408576698