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

Unified Diff: chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc

Issue 2864293003: [Offline Pages] Add a GCMAppHandler for offline page prefetch. (Closed)
Patch Set: Fix windows compile. 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: chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc
diff --git a/components/offline_pages/content/prefetch_service_factory.cc b/chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc
similarity index 76%
rename from components/offline_pages/content/prefetch_service_factory.cc
rename to chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc
index ffe46b2630825585089479fcd31dfa4165481b54..74c20aa6625f447cae0788b6d82e2b26909f7dab 100644
--- a/components/offline_pages/content/prefetch_service_factory.cc
+++ b/chrome/browser/offline_pages/prefetch/prefetch_service_factory.cc
@@ -2,10 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/offline_pages/content/prefetch_service_factory.h"
+#include "chrome/browser/offline_pages/prefetch/prefetch_service_factory.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
+#include "chrome/browser/gcm/gcm_profile_service_factory.h"
fgorski 2017/05/30 18:20:05 are these includes needed?
dewittj 2017/05/30 21:09:18 Done.
+#include "components/gcm_driver/gcm_driver.h"
+#include "components/gcm_driver/gcm_profile_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
+#include "components/offline_pages/core/prefetch/prefetch_gcm_app_handler.h"
#include "components/offline_pages/core/prefetch/prefetch_service_impl.h"
#include "content/public/browser/browser_context.h"
@@ -15,7 +20,6 @@ PrefetchServiceFactory::PrefetchServiceFactory()
: BrowserContextKeyedServiceFactory(
"OfflinePagePrefetchService",
BrowserContextDependencyManager::GetInstance()) {}
-
// static
PrefetchServiceFactory* PrefetchServiceFactory::GetInstance() {
return base::Singleton<PrefetchServiceFactory>::get();

Powered by Google App Engine
This is Rietveld 408576698