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

Unified Diff: components/offline_pages/content/prefetch_service_factory.cc

Issue 2864293003: [Offline Pages] Add a GCMAppHandler for offline page prefetch. (Closed)
Patch Set: Fix windows 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/content/prefetch_service_factory.cc
diff --git a/components/offline_pages/content/prefetch_service_factory.cc b/components/offline_pages/content/prefetch_service_factory.cc
deleted file mode 100644
index ffe46b2630825585089479fcd31dfa4165481b54..0000000000000000000000000000000000000000
--- a/components/offline_pages/content/prefetch_service_factory.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// 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 "base/memory/singleton.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "components/offline_pages/core/prefetch/prefetch_service_impl.h"
-#include "content/public/browser/browser_context.h"
-
-namespace offline_pages {
-
-PrefetchServiceFactory::PrefetchServiceFactory()
- : BrowserContextKeyedServiceFactory(
- "OfflinePagePrefetchService",
- BrowserContextDependencyManager::GetInstance()) {}
-
-// static
-PrefetchServiceFactory* PrefetchServiceFactory::GetInstance() {
- return base::Singleton<PrefetchServiceFactory>::get();
-}
-
-// static
-PrefetchService* PrefetchServiceFactory::GetForBrowserContext(
- content::BrowserContext* context) {
- return static_cast<PrefetchService*>(
- GetInstance()->GetServiceForBrowserContext(context, true));
-}
-
-KeyedService* PrefetchServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* context) const {
- return new PrefetchServiceImpl();
-}
-
-} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698