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

Unified Diff: apps/app_load_service_factory.cc

Issue 2789253003: Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there (Closed)
Patch Set: rebase Created 3 years, 8 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_load_service_factory.h ('k') | apps/browser_context_keyed_service_factories.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_load_service_factory.cc
diff --git a/apps/app_load_service_factory.cc b/apps/app_load_service_factory.cc
deleted file mode 100644
index 3e0b54ae6d367f30b5ad88ddec7dd2163443c292..0000000000000000000000000000000000000000
--- a/apps/app_load_service_factory.cc
+++ /dev/null
@@ -1,63 +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_load_service_factory.h"
-
-#include "apps/app_load_service.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "content/public/browser/browser_context.h"
-#include "extensions/browser/app_window/app_window_registry.h"
-#include "extensions/browser/extension_prefs_factory.h"
-#include "extensions/browser/extension_registry_factory.h"
-#include "extensions/browser/extension_system_provider.h"
-#include "extensions/browser/extensions_browser_client.h"
-
-namespace apps {
-
-// static
-AppLoadService* AppLoadServiceFactory::GetForBrowserContext(
- content::BrowserContext* context) {
- return static_cast<AppLoadService*>(
- GetInstance()->GetServiceForBrowserContext(context, true));
-}
-
-AppLoadServiceFactory* AppLoadServiceFactory::GetInstance() {
- return base::Singleton<AppLoadServiceFactory>::get();
-}
-
-AppLoadServiceFactory::AppLoadServiceFactory()
- : BrowserContextKeyedServiceFactory(
- "AppLoadService",
- BrowserContextDependencyManager::GetInstance()) {
- DependsOn(extensions::AppWindowRegistry::Factory::GetInstance());
- DependsOn(extensions::ExtensionPrefsFactory::GetInstance());
- DependsOn(extensions::ExtensionRegistryFactory::GetInstance());
- DependsOn(
- extensions::ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
-}
-
-AppLoadServiceFactory::~AppLoadServiceFactory() {
-}
-
-KeyedService* AppLoadServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* context) const {
- return new AppLoadService(context);
-}
-
-bool AppLoadServiceFactory::ServiceIsNULLWhileTesting() const {
- return false;
-}
-
-bool AppLoadServiceFactory::ServiceIsCreatedWithBrowserContext() const {
- return true;
-}
-
-content::BrowserContext* AppLoadServiceFactory::GetBrowserContextToUse(
- content::BrowserContext* context) const {
- // Redirected in incognito.
- return extensions::ExtensionsBrowserClient::Get()->
- GetOriginalContext(context);
-}
-
-} // namespace apps
« no previous file with comments | « apps/app_load_service_factory.h ('k') | apps/browser_context_keyed_service_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698