diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 02:59:13 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-12 02:59:13 +0000 |
commit | 1d3e917629c873ec30133f7023e35c5218a97725 (patch) | |
tree | 7ed63df857ef342dd30926313904e9318b0a2c7f /chrome/browser/debugger/devtools_window.cc | |
parent | f2ea1fc3579f75e010cc6e8ff4fa95ad9e2a1453 (diff) | |
download | chromium_src-1d3e917629c873ec30133f7023e35c5218a97725.zip chromium_src-1d3e917629c873ec30133f7023e35c5218a97725.tar.gz chromium_src-1d3e917629c873ec30133f7023e35c5218a97725.tar.bz2 |
TabContentsWrapper -> TabContents, part 43.
GetOwningTabContentsForWebContents
BUG=131026
TEST=no change
Review URL: https://chromiumcodereview.appspot.com/10535120
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141602 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_window.cc')
-rw-r--r-- | chrome/browser/debugger/devtools_window.cc | 5 |
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; |