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 e3ce123850d6b3db5250c8f7419ff89531c53273..667c19ad5b142889bc4251109dc41b52a3659c24 100644 |
--- a/chrome/browser/extensions/extension_function_dispatcher.cc |
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc |
@@ -485,7 +485,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 = |
+ static_cast<Profile*>(render_view_host->process()->context()); |
browser = BrowserList::FindTabbedBrowser(profile, include_incognito); |
// NOTE(rafaelw): This can return NULL in some circumstances. In particular, |