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

Unified Diff: chrome/browser/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
Index: chrome/browser/apps/app_load_service_factory.cc
diff --git a/apps/app_load_service_factory.cc b/chrome/browser/apps/app_load_service_factory.cc
similarity index 84%
rename from apps/app_load_service_factory.cc
rename to chrome/browser/apps/app_load_service_factory.cc
index 3e0b54ae6d367f30b5ad88ddec7dd2163443c292..bbd4c42680a7b60466da5df203c2deee8fe6e271 100644
--- a/apps/app_load_service_factory.cc
+++ b/chrome/browser/apps/app_load_service_factory.cc
@@ -2,9 +2,9 @@
// 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 "chrome/browser/apps/app_load_service_factory.h"
-#include "apps/app_load_service.h"
+#include "chrome/browser/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"
@@ -28,8 +28,8 @@ AppLoadServiceFactory* AppLoadServiceFactory::GetInstance() {
AppLoadServiceFactory::AppLoadServiceFactory()
: BrowserContextKeyedServiceFactory(
- "AppLoadService",
- BrowserContextDependencyManager::GetInstance()) {
+ "AppLoadService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(extensions::AppWindowRegistry::Factory::GetInstance());
DependsOn(extensions::ExtensionPrefsFactory::GetInstance());
DependsOn(extensions::ExtensionRegistryFactory::GetInstance());
@@ -37,8 +37,7 @@ AppLoadServiceFactory::AppLoadServiceFactory()
extensions::ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
}
-AppLoadServiceFactory::~AppLoadServiceFactory() {
-}
+AppLoadServiceFactory::~AppLoadServiceFactory() {}
KeyedService* AppLoadServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
@@ -56,8 +55,8 @@ bool AppLoadServiceFactory::ServiceIsCreatedWithBrowserContext() const {
content::BrowserContext* AppLoadServiceFactory::GetBrowserContextToUse(
content::BrowserContext* context) const {
// Redirected in incognito.
- return extensions::ExtensionsBrowserClient::Get()->
- GetOriginalContext(context);
+ return extensions::ExtensionsBrowserClient::Get()->GetOriginalContext(
+ context);
}
} // namespace apps
« no previous file with comments | « chrome/browser/apps/app_load_service_factory.h ('k') | chrome/browser/apps/browser_context_keyed_service_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698