Convert ExtensionFunctionDispatcher from Profile to BrowserContext
Part of the AppShell extensions system refactor project.
BUG=309909
TEST=browser_tests
Review URL: https://codereview.chromium.org/100653003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238431 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_function_dispatcher.h b/chrome/browser/extensions/extension_function_dispatcher.h
index cf76f5a..9e80fca 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.h
+++ b/chrome/browser/extensions/extension_function_dispatcher.h
@@ -15,7 +15,6 @@
#include "url/gurl.h"
class ChromeRenderMessageFilter;
-class Profile;
struct ExtensionHostMsg_Request_Params;
namespace content {
@@ -119,8 +118,8 @@
// a response (if any) to the extension.
void OnExtensionFunctionCompleted(const extensions::Extension* extension);
- // The profile that this dispatcher is associated with.
- Profile* profile() { return profile_; }
+ // The BrowserContext that this dispatcher is associated with.
+ content::BrowserContext* browser_context() { return browser_context_; }
private:
// For a given RenderViewHost instance, UIThreadResponseCallbackWrapper
@@ -157,7 +156,7 @@
static void SendAccessDenied(
const ExtensionFunction::ResponseCallback& callback);
- Profile* profile_;
+ content::BrowserContext* browser_context_;
Delegate* delegate_;