| Index: chrome/browser/extensions/extension_function_dispatcher.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_function_dispatcher.cc (revision 94334)
|
| +++ chrome/browser/extensions/extension_function_dispatcher.cc (working copy)
|
| @@ -498,8 +498,7 @@
|
| // 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 = Profile::FromBrowserContext(
|
| - render_view_host->process()->browser_context());
|
| + Profile* profile = render_view_host->process()->profile();
|
| browser = BrowserList::FindTabbedBrowser(profile, include_incognito);
|
|
|
| // NOTE(rafaelw): This can return NULL in some circumstances. In particular,
|
|
|