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

Unified Diff: apps/app_lifetime_monitor_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_lifetime_monitor.cc ('k') | apps/app_lifetime_monitor_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_lifetime_monitor_factory.h
diff --git a/apps/app_lifetime_monitor_factory.h b/apps/app_lifetime_monitor_factory.h
index 4beec38076d8a682002faa275f9f6cbf69259490..51d50f2d13409657e93cc5747186f04c96fc0fe7 100644
--- a/apps/app_lifetime_monitor_factory.h
+++ b/apps/app_lifetime_monitor_factory.h
@@ -8,18 +8,21 @@
#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 AppLifetimeMonitor;
// Singleton that owns all AppLifetimeMonitors and associates them with
-// Profiles. Listens for the Profile's destruction notification and cleans up
-// the associated AppLifetimeMonitor.
+// BrowserContexts. Listens for the BrowserContext's destruction notification
+// and cleans up the associated AppLifetimeMonitor.
class AppLifetimeMonitorFactory : public BrowserContextKeyedServiceFactory {
public:
- static AppLifetimeMonitor* GetForProfile(Profile* profile);
+ static AppLifetimeMonitor* GetForBrowserContext(
+ content::BrowserContext* context);
static AppLifetimeMonitorFactory* GetInstance();
@@ -31,7 +34,7 @@ class AppLifetimeMonitorFactory : public BrowserContextKeyedServiceFactory {
// BrowserContextKeyedServiceFactory:
KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const override;
+ content::BrowserContext* context) const override;
bool ServiceIsCreatedWithBrowserContext() const override;
content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const override;
« no previous file with comments | « apps/app_lifetime_monitor.cc ('k') | apps/app_lifetime_monitor_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698