Index: chrome/browser/debugger/devtools_window.cc |
=================================================================== |
--- chrome/browser/debugger/devtools_window.cc (revision 138434) |
+++ chrome/browser/debugger/devtools_window.cc (working copy) |
@@ -226,7 +226,7 @@ |
ThemeServiceFactory::GetForProfile(profile_))); |
// There is no inspected_rvh in case of shared workers. |
if (inspected_rvh) { |
- WebContents* tab = inspected_rvh->GetDelegate()->GetAsWebContents(); |
+ WebContents* tab = WebContents::FromRenderViewHost(inspected_rvh); |
if (tab) |
inspected_tab_ = TabContentsWrapper::GetCurrentWrapperForContents(tab); |
} |