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

Unified Diff: apps/app_load_service.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_factory.cc ('k') | apps/app_load_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_load_service.h
diff --git a/apps/app_load_service.h b/apps/app_load_service.h
index 508f2f06ef8975783c755ec4bdca673094eda5c7..ace3736d0177c00c6609a7a08b1c22de8bdaf1a6 100644
--- a/apps/app_load_service.h
+++ b/apps/app_load_service.h
@@ -15,7 +15,9 @@
#include "content/public/browser/notification_registrar.h"
#include "extensions/browser/extension_registry_observer.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace extensions {
struct UnloadedExtensionInfo;
@@ -43,7 +45,7 @@ class AppLoadService : public KeyedService,
base::FilePath current_dir;
};
- explicit AppLoadService(Profile* profile);
+ explicit AppLoadService(content::BrowserContext* context);
~AppLoadService() override;
// KeyedService support:
@@ -68,7 +70,7 @@ class AppLoadService : public KeyedService,
// the app has begun successfully.
bool Load(const base::FilePath& extension_path);
- static AppLoadService* Get(Profile* profile);
+ static AppLoadService* Get(content::BrowserContext* context);
private:
// content::NotificationObserver.
@@ -91,7 +93,7 @@ class AppLoadService : public KeyedService,
// no action.
std::map<std::string, PostReloadAction> post_reload_actions_;
content::NotificationRegistrar registrar_;
- Profile* profile_;
+ content::BrowserContext* context_;
DISALLOW_COPY_AND_ASSIGN(AppLoadService);
};
« no previous file with comments | « apps/app_lifetime_monitor_factory.cc ('k') | apps/app_load_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698