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

Unified Diff: apps/app_keep_alive_service_factory.cc

Issue 172313004: Remove unused AppKeepAliveService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (keep_alive_service) Created 6 years, 10 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
« no previous file with comments | « apps/app_keep_alive_service_factory.h ('k') | apps/app_keep_alive_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_keep_alive_service_factory.cc
diff --git a/apps/app_keep_alive_service_factory.cc b/apps/app_keep_alive_service_factory.cc
deleted file mode 100644
index 5afe0508f6dd57c3b6cd42b5a792be85e0fdb1eb..0000000000000000000000000000000000000000
--- 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
« no previous file with comments | « apps/app_keep_alive_service_factory.h ('k') | apps/app_keep_alive_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698