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

Unified Diff: apps/app_restore_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_restore_service_factory.h ('k') | apps/launcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_restore_service_factory.cc
diff --git a/apps/app_restore_service_factory.cc b/apps/app_restore_service_factory.cc
index 407b80df4338a64f204be989b0c2d92ed5697e6f..de04e4448e726e8c83d3135b2a1af0d8af8ecb69 100644
--- a/apps/app_restore_service_factory.cc
+++ b/apps/app_restore_service_factory.cc
@@ -6,15 +6,16 @@
#include "apps/app_lifetime_monitor_factory.h"
#include "apps/app_restore_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"
namespace apps {
// static
-AppRestoreService* AppRestoreServiceFactory::GetForProfile(Profile* profile) {
+AppRestoreService* AppRestoreServiceFactory::GetForBrowserContext(
+ content::BrowserContext* context) {
return static_cast<AppRestoreService*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
+ GetInstance()->GetServiceForBrowserContext(context, true));
}
AppRestoreServiceFactory* AppRestoreServiceFactory::GetInstance() {
@@ -32,8 +33,8 @@ AppRestoreServiceFactory::~AppRestoreServiceFactory() {
}
KeyedService* AppRestoreServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new AppRestoreService(static_cast<Profile*>(profile));
+ content::BrowserContext* context) const {
+ return new AppRestoreService(context);
}
bool AppRestoreServiceFactory::ServiceIsCreatedWithBrowserContext() const {
« no previous file with comments | « apps/app_restore_service_factory.h ('k') | apps/launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698