| Index: apps/saved_files_service_impl_factory.cc
|
| diff --git a/apps/saved_files_service_factory.cc b/apps/saved_files_service_impl_factory.cc
|
| similarity index 52%
|
| rename from apps/saved_files_service_factory.cc
|
| rename to apps/saved_files_service_impl_factory.cc
|
| index f85b315500c40f463a5743eb9a9acd76f76f8400..4c6ccc75c0160a541259a8c06bdb6b64060a2606 100644
|
| --- a/apps/saved_files_service_factory.cc
|
| +++ b/apps/saved_files_service_impl_factory.cc
|
| @@ -4,41 +4,42 @@
|
|
|
| #include "apps/saved_files_service_factory.h"
|
|
|
| -#include "apps/saved_files_service.h"
|
| +#include "apps/saved_files_service_impl.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
| #include "content/public/browser/browser_context.h"
|
|
|
| namespace apps {
|
|
|
| // static
|
| -SavedFilesService* SavedFilesServiceFactory::GetForBrowserContext(
|
| +SavedFilesServiceImpl* SavedFilesServiceImplFactory::GetForBrowserContext(
|
| content::BrowserContext* context) {
|
| - return static_cast<SavedFilesService*>(
|
| + return static_cast<SavedFilesServiceImpl*>(
|
| GetInstance()->GetServiceForBrowserContext(context, true));
|
| }
|
|
|
| // static
|
| -SavedFilesService* SavedFilesServiceFactory::GetForBrowserContextIfExists(
|
| +SavedFilesServiceImpl*
|
| +SavedFilesServiceImplFactory::GetForBrowserContextIfExists(
|
| content::BrowserContext* context) {
|
| - return static_cast<SavedFilesService*>(
|
| + return static_cast<SavedFilesServiceImpl*>(
|
| GetInstance()->GetServiceForBrowserContext(context, false));
|
| }
|
|
|
| // static
|
| -SavedFilesServiceFactory* SavedFilesServiceFactory::GetInstance() {
|
| - return base::Singleton<SavedFilesServiceFactory>::get();
|
| +SavedFilesServiceImplFactory* SavedFilesServiceImplFactory::GetInstance() {
|
| + return base::Singleton<SavedFilesServiceImplFactory>::get();
|
| }
|
|
|
| -SavedFilesServiceFactory::SavedFilesServiceFactory()
|
| +SavedFilesServiceImplFactory::SavedFilesServiceImplFactory()
|
| : BrowserContextKeyedServiceFactory(
|
| - "SavedFilesService",
|
| + "SavedFilesServiceImpl",
|
| BrowserContextDependencyManager::GetInstance()) {}
|
|
|
| -SavedFilesServiceFactory::~SavedFilesServiceFactory() {}
|
| +SavedFilesServiceImplFactory::~SavedFilesServiceImplFactory() {}
|
|
|
| -KeyedService* SavedFilesServiceFactory::BuildServiceInstanceFor(
|
| +KeyedService* SavedFilesServiceImplFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| - return new SavedFilesService(context);
|
| + return new SavedFilesServiceImpl(context);
|
| }
|
|
|
| } // namespace apps
|
|
|