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

Unified Diff: chrome/browser/apps/app_shim/extension_app_shim_handler_mac.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
Index: chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h
diff --git a/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h b/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h
index a0edc1d56e138bbc08be0d55f33df34064f19e30..1b3efd15765d1b31cb48f4bff2041d9ebb753c0a 100644
--- a/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h
+++ b/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h
@@ -27,6 +27,10 @@ namespace base {
class FilePath;
}
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
class AppWindow;
class Extension;
@@ -56,7 +60,7 @@ class ExtensionAppShimHandler : public AppShimHandler,
const std::string& extension_id);
virtual const extensions::Extension* MaybeGetAppExtension(
- Profile* profile,
+ content::BrowserContext* context,
const std::string& extension_id);
virtual void EnableExtension(Profile* profile,
const std::string& extension_id,
@@ -84,7 +88,7 @@ class ExtensionAppShimHandler : public AppShimHandler,
bool hidden);
static const extensions::Extension* MaybeGetAppExtension(
- Profile* profile,
+ content::BrowserContext* context,
const std::string& extension_id);
static const extensions::Extension* MaybeGetAppForBrowser(Browser* browser);
@@ -125,10 +129,14 @@ class ExtensionAppShimHandler : public AppShimHandler,
void OnShimQuit(Host* host) override;
// AppLifetimeMonitor::Observer overrides:
- void OnAppStart(Profile* profile, const std::string& app_id) override;
- void OnAppActivated(Profile* profile, const std::string& app_id) override;
- void OnAppDeactivated(Profile* profile, const std::string& app_id) override;
- void OnAppStop(Profile* profile, const std::string& app_id) override;
+ void OnAppStart(content::BrowserContext* context,
+ const std::string& app_id) override;
+ void OnAppActivated(content::BrowserContext* context,
+ const std::string& app_id) override;
+ void OnAppDeactivated(content::BrowserContext* context,
+ const std::string& app_id) override;
+ void OnAppStop(content::BrowserContext* context,
+ const std::string& app_id) override;
// content::NotificationObserver overrides:
void Observe(int type,

Powered by Google App Engine
This is Rietveld 408576698