Index: chrome/browser/debugger/devtools_window.cc |
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc |
index 0569a9c5915f704503a4710bf9273ec7542d1c2b..d78ac5522f993e41bc145da66bcb3f16c17ae0c0 100644 |
--- a/chrome/browser/debugger/devtools_window.cc |
+++ b/chrome/browser/debugger/devtools_window.cc |
@@ -222,7 +222,7 @@ DevToolsWindow::DevToolsWindow(TabContentsWrapper* tab_contents, |
ThemeServiceFactory::GetForProfile(profile_))); |
// There is no inspected_rvh in case of shared workers. |
if (inspected_rvh) { |
- WebContents* tab = inspected_rvh->delegate()->GetAsWebContents(); |
+ WebContents* tab = inspected_rvh->GetDelegate()->GetAsWebContents(); |
if (tab) |
inspected_tab_ = TabContentsWrapper::GetCurrentWrapperForContents(tab); |
} |
@@ -639,7 +639,7 @@ DevToolsWindow* DevToolsWindow::ToggleDevToolsWindow( |
bool do_open = force_open; |
if (!window) { |
Profile* profile = Profile::FromBrowserContext( |
- inspected_rvh->process()->GetBrowserContext()); |
+ inspected_rvh->GetProcess()->GetBrowserContext()); |
bool docked = profile->GetPrefs()->GetBoolean(prefs::kDevToolsOpenDocked); |
window = Create(profile, inspected_rvh, docked, false); |
manager->RegisterDevToolsClientHostFor(agent, window->frontend_host_); |