Convert ExtensionHost from Profile to BrowserContext

This gets it a step closer to being able to be extracted from chrome/browser.
This is part of the AppShell extension refactoring project.

BUG=309909
TEST=browser_tests
[email protected] for changing some profile() to browser_context() calls in c/b/ui

Review URL: https://codereview.chromium.org/93063002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237719 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index f8686c9..57da592 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -288,10 +288,11 @@
   }
 }
 
-ExtensionFunctionDispatcher::ExtensionFunctionDispatcher(Profile* profile,
-                                                         Delegate* delegate)
-  : profile_(profile),
-    delegate_(delegate) {
+ExtensionFunctionDispatcher::ExtensionFunctionDispatcher(
+    content::BrowserContext* browser_context,
+    Delegate* delegate)
+    : profile_(Profile::FromBrowserContext(browser_context)),
+      delegate_(delegate) {
 }
 
 ExtensionFunctionDispatcher::~ExtensionFunctionDispatcher() {