| Index: chrome/browser/extensions/extension_function_dispatcher.cc
|
| diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
|
| index c8cbf9e294a0376dbd6a137f51033329047328d2..ee23a61758bb6c1bc8b3eded85e6a4a8c0e97d9c 100644
|
| --- a/chrome/browser/extensions/extension_function_dispatcher.cc
|
| +++ b/chrome/browser/extensions/extension_function_dispatcher.cc
|
| @@ -491,7 +491,8 @@ Browser* ExtensionFunctionDispatcher::GetCurrentBrowser(
|
| // profile. Note that the profile may already be incognito, in which case
|
| // we will search the incognito version only, regardless of the value of
|
| // |include_incognito|.
|
| - Profile* profile = render_view_host->process()->profile();
|
| + Profile* profile = Profile::FromBrowserContext(
|
| + render_view_host->process()->browser_context());
|
| browser = BrowserList::FindTabbedBrowser(profile, include_incognito);
|
|
|
| // NOTE(rafaelw): This can return NULL in some circumstances. In particular,
|
|
|