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

Unified Diff: apps/app_load_service_factory.cc

Issue 2729503007: Remove Profile usage from //apps (Closed)
Patch Set: deps Created 3 years, 9 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/app_restore_service.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
index 10acf68c3cade329e4dd05dc3ef14e64bbb98fad..3e0b54ae6d367f30b5ad88ddec7dd2163443c292 100644
--- a/apps/app_load_service_factory.cc
+++ b/apps/app_load_service_factory.cc
@@ -5,8 +5,8 @@
#include "apps/app_load_service_factory.h"
#include "apps/app_load_service.h"
-#include "chrome/browser/profiles/profile.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"
@@ -16,9 +16,10 @@
namespace apps {
// static
-AppLoadService* AppLoadServiceFactory::GetForProfile(Profile* profile) {
+AppLoadService* AppLoadServiceFactory::GetForBrowserContext(
+ content::BrowserContext* context) {
return static_cast<AppLoadService*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
+ GetInstance()->GetServiceForBrowserContext(context, true));
}
AppLoadServiceFactory* AppLoadServiceFactory::GetInstance() {
@@ -40,8 +41,8 @@ AppLoadServiceFactory::~AppLoadServiceFactory() {
}
KeyedService* AppLoadServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new AppLoadService(static_cast<Profile*>(profile));
+ content::BrowserContext* context) const {
+ return new AppLoadService(context);
}
bool AppLoadServiceFactory::ServiceIsNULLWhileTesting() const {
« no previous file with comments | « apps/app_load_service_factory.h ('k') | apps/app_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698