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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "apps/app_keep_alive_service_factory.h"
6
7 #include "apps/app_keep_alive_service.h"
8 #include "apps/app_lifetime_monitor_factory.h"
9 #include "apps/app_window_registry.h"
10 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h"
11 #include "extensions/browser/extensions_browser_client.h"
12
13 namespace apps {
14
15 // static
16 AppKeepAliveServiceFactory* AppKeepAliveServiceFactory::GetInstance() {
17 return Singleton<AppKeepAliveServiceFactory>::get();
18 }
19
20 AppKeepAliveServiceFactory::AppKeepAliveServiceFactory()
21 : BrowserContextKeyedServiceFactory(
22 "AppKeepAliveService",
23 BrowserContextDependencyManager::GetInstance()) {
24 DependsOn(AppLifetimeMonitorFactory::GetInstance());
25 }
26
27 AppKeepAliveServiceFactory::~AppKeepAliveServiceFactory() {}
28
29 BrowserContextKeyedService* AppKeepAliveServiceFactory::BuildServiceInstanceFor(
30 content::BrowserContext* context) const {
31 return new AppKeepAliveService(context);
32 }
33
34 bool AppKeepAliveServiceFactory::ServiceIsCreatedWithBrowserContext() const {
35 return true;
36 }
37
38 content::BrowserContext* AppKeepAliveServiceFactory::GetBrowserContextToUse(
39 content::BrowserContext* context) const {
40 return extensions::ExtensionsBrowserClient::Get()->
41 GetOriginalContext(context);
42 }
43
44 bool AppKeepAliveServiceFactory::ServiceIsNULLWhileTesting() const {
45 return true;
46 }
47
48 } // namespace apps
OLDNEW
« 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