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

Unified Diff: apps/app_lifetime_monitor_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_lifetime_monitor_factory.h ('k') | apps/app_load_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_lifetime_monitor_factory.cc
diff --git a/apps/app_lifetime_monitor_factory.cc b/apps/app_lifetime_monitor_factory.cc
index 03624a7b8a8a11ef68c18db9cc9ca0277fbfdaa2..cd5c240e192f584dd525d04ba406dec76f2149dc 100644
--- a/apps/app_lifetime_monitor_factory.cc
+++ b/apps/app_lifetime_monitor_factory.cc
@@ -5,17 +5,18 @@
#include "apps/app_lifetime_monitor_factory.h"
#include "apps/app_lifetime_monitor.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/extensions_browser_client.h"
namespace apps {
// static
-AppLifetimeMonitor* AppLifetimeMonitorFactory::GetForProfile(Profile* profile) {
+AppLifetimeMonitor* AppLifetimeMonitorFactory::GetForBrowserContext(
+ content::BrowserContext* context) {
return static_cast<AppLifetimeMonitor*>(
- GetInstance()->GetServiceForBrowserContext(profile, false));
+ GetInstance()->GetServiceForBrowserContext(context, false));
}
AppLifetimeMonitorFactory* AppLifetimeMonitorFactory::GetInstance() {
@@ -32,8 +33,8 @@ AppLifetimeMonitorFactory::AppLifetimeMonitorFactory()
AppLifetimeMonitorFactory::~AppLifetimeMonitorFactory() {}
KeyedService* AppLifetimeMonitorFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new AppLifetimeMonitor(static_cast<Profile*>(profile));
+ content::BrowserContext* context) const {
+ return new AppLifetimeMonitor(context);
}
bool AppLifetimeMonitorFactory::ServiceIsCreatedWithBrowserContext() const {
« no previous file with comments | « apps/app_lifetime_monitor_factory.h ('k') | apps/app_load_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698