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

Unified Diff: apps/app_restore_service_factory.h

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_browsertest.cc ('k') | apps/app_restore_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_restore_service_factory.h
diff --git a/apps/app_restore_service_factory.h b/apps/app_restore_service_factory.h
index ec72fe7e03fe915ed69ca6ffe92df4fc969a8596..cb25a7bc96f2535aa84545c40666cc6fdf09aec6 100644
--- a/apps/app_restore_service_factory.h
+++ b/apps/app_restore_service_factory.h
@@ -8,18 +8,22 @@
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace apps {
class AppRestoreService;
// Singleton that owns all AppRestoreServices and associates them with
-// Profiles. Listens for the Profile's destruction notification and cleans up
+// BrowserContexts. Listens for the BrowserContext's destruction notification
+// and cleans up
// the associated AppRestoreService.
class AppRestoreServiceFactory : public BrowserContextKeyedServiceFactory {
public:
- static AppRestoreService* GetForProfile(Profile* profile);
+ static AppRestoreService* GetForBrowserContext(
+ content::BrowserContext* context);
static AppRestoreServiceFactory* GetInstance();
@@ -31,7 +35,7 @@ class AppRestoreServiceFactory : public BrowserContextKeyedServiceFactory {
// BrowserContextKeyedServiceFactory:
KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const override;
+ content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override;
};
« no previous file with comments | « apps/app_restore_service_browsertest.cc ('k') | apps/app_restore_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698