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

Unified Diff: apps/saved_files_service_factory.cc

Issue 2951003002: SavedFilesService interface in //extensions (Closed)
Patch Set: cleanup 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: apps/saved_files_service_factory.cc
diff --git a/apps/saved_files_service_factory.cc b/apps/saved_files_service_factory.cc
deleted file mode 100644
index f85b315500c40f463a5743eb9a9acd76f76f8400..0000000000000000000000000000000000000000
--- a/apps/saved_files_service_factory.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 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 "apps/saved_files_service_factory.h"
-
-#include "apps/saved_files_service.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "content/public/browser/browser_context.h"
-
-namespace apps {
-
-// static
-SavedFilesService* SavedFilesServiceFactory::GetForBrowserContext(
- content::BrowserContext* context) {
- return static_cast<SavedFilesService*>(
- GetInstance()->GetServiceForBrowserContext(context, true));
-}
-
-// static
-SavedFilesService* SavedFilesServiceFactory::GetForBrowserContextIfExists(
- content::BrowserContext* context) {
- return static_cast<SavedFilesService*>(
- GetInstance()->GetServiceForBrowserContext(context, false));
-}
-
-// static
-SavedFilesServiceFactory* SavedFilesServiceFactory::GetInstance() {
- return base::Singleton<SavedFilesServiceFactory>::get();
-}
-
-SavedFilesServiceFactory::SavedFilesServiceFactory()
- : BrowserContextKeyedServiceFactory(
- "SavedFilesService",
- BrowserContextDependencyManager::GetInstance()) {}
-
-SavedFilesServiceFactory::~SavedFilesServiceFactory() {}
-
-KeyedService* SavedFilesServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* context) const {
- return new SavedFilesService(context);
-}
-
-} // namespace apps

Powered by Google App Engine
This is Rietveld 408576698