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

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

Issue 2864293003: [Offline Pages] Add a GCMAppHandler for offline page prefetch. (Closed)
Patch Set: Refactor to remove GCM dependency. Created 3 years, 7 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_impl.cc
diff --git a/components/offline_pages/core/prefetch/prefetch_service_impl.cc b/components/offline_pages/core/prefetch/prefetch_service_impl.cc
index 13f0eb3f40502706ad1a1fe7f2d6503c5f811f87..830fe0e890209ae68baf09238e528df0c489a968 100644
--- a/components/offline_pages/core/prefetch/prefetch_service_impl.cc
+++ b/components/offline_pages/core/prefetch/prefetch_service_impl.cc
@@ -6,7 +6,9 @@
namespace offline_pages {
-PrefetchServiceImpl::PrefetchServiceImpl() {}
+PrefetchServiceImpl::PrefetchServiceImpl(
+ std::unique_ptr<GCMAppHandler> gcm_app_handler)
+ : gcm_app_handler_(std::move(gcm_app_handler)) {}
PrefetchServiceImpl::~PrefetchServiceImpl() = default;
void PrefetchServiceImpl::AddCandidatePrefetchURLs(

Powered by Google App Engine
This is Rietveld 408576698