diff options
Diffstat (limited to 'apps/app_keep_alive_service_factory.cc')
-rw-r--r-- | apps/app_keep_alive_service_factory.cc | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/apps/app_keep_alive_service_factory.cc b/apps/app_keep_alive_service_factory.cc deleted file mode 100644 index 5afe050..0000000 --- a/apps/app_keep_alive_service_factory.cc +++ /dev/null @@ -1,48 +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/app_keep_alive_service_factory.h" - -#include "apps/app_keep_alive_service.h" -#include "apps/app_lifetime_monitor_factory.h" -#include "apps/app_window_registry.h" -#include "components/browser_context_keyed_service/browser_context_dependency_manager.h" -#include "extensions/browser/extensions_browser_client.h" - -namespace apps { - -// static -AppKeepAliveServiceFactory* AppKeepAliveServiceFactory::GetInstance() { - return Singleton<AppKeepAliveServiceFactory>::get(); -} - -AppKeepAliveServiceFactory::AppKeepAliveServiceFactory() - : BrowserContextKeyedServiceFactory( - "AppKeepAliveService", - BrowserContextDependencyManager::GetInstance()) { - DependsOn(AppLifetimeMonitorFactory::GetInstance()); -} - -AppKeepAliveServiceFactory::~AppKeepAliveServiceFactory() {} - -BrowserContextKeyedService* AppKeepAliveServiceFactory::BuildServiceInstanceFor( - content::BrowserContext* context) const { - return new AppKeepAliveService(context); -} - -bool AppKeepAliveServiceFactory::ServiceIsCreatedWithBrowserContext() const { - return true; -} - -content::BrowserContext* AppKeepAliveServiceFactory::GetBrowserContextToUse( - content::BrowserContext* context) const { - return extensions::ExtensionsBrowserClient::Get()-> - GetOriginalContext(context); -} - -bool AppKeepAliveServiceFactory::ServiceIsNULLWhileTesting() const { - return true; -} - -} // namespace apps |