From 26b5e32067f119d2d69e83b319db7f52fdc48ede Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 23 Dec 2011 01:36:47 +0000 Subject: Change most of the methods of WebContentsObserver to take a content::WebContents instead of a TabContents, and update all the dependent code. BUG=98716 Review URL: http://codereview.chromium.org/9022023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115664 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_tab_id_map.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/extensions/extension_tab_id_map.cc') diff --git a/chrome/browser/extensions/extension_tab_id_map.cc b/chrome/browser/extensions/extension_tab_id_map.cc index 1926aab..cd70e74 100644 --- a/chrome/browser/extensions/extension_tab_id_map.cc +++ b/chrome/browser/extensions/extension_tab_id_map.cc @@ -20,6 +20,7 @@ #include "content/public/browser/notification_types.h" using content::BrowserThread; +using content::WebContents; // // ExtensionTabIdMap::TabObserver @@ -98,12 +99,12 @@ void ExtensionTabIdMap::TabObserver::Observe( case chrome::NOTIFICATION_RETARGETING: { RetargetingDetails* retargeting_details = content::Details(details).ptr(); - TabContents* contents = retargeting_details->target_tab_contents; + WebContents* contents = retargeting_details->target_web_contents; TabContentsWrapper* tab = TabContentsWrapper::GetCurrentWrapperForContents(contents); if (!tab) break; - RenderViewHost* host = tab->tab_contents()->GetRenderViewHost(); + RenderViewHost* host = contents->GetRenderViewHost(); BrowserThread::PostTask( BrowserThread::IO, FROM_HERE, base::Bind( -- cgit v1.1