summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/devtools_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/debugger/devtools_window.cc')
-rw-r--r--chrome/browser/debugger/devtools_window.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc
index 1f36652..82f5e30 100644
--- a/chrome/browser/debugger/devtools_window.cc
+++ b/chrome/browser/debugger/devtools_window.cc
@@ -227,7 +227,7 @@ DevToolsWindow::DevToolsWindow(TabContents* tab_contents,
if (inspected_rvh) {
WebContents* tab = WebContents::FromRenderViewHost(inspected_rvh);
if (tab)
- inspected_tab_ = TabContents::GetOwningTabContentsForWebContents(tab);
+ inspected_tab_ = TabContents::FromWebContents(tab);
}
}
@@ -262,8 +262,7 @@ void DevToolsWindow::InspectedContentsClosing() {
}
void DevToolsWindow::ContentsReplaced(WebContents* new_contents) {
- TabContents* new_tab_contents =
- TabContents::GetOwningTabContentsForWebContents(new_contents);
+ TabContents* new_tab_contents = TabContents::FromWebContents(new_contents);
DCHECK(new_tab_contents);
if (!new_tab_contents)
return;