summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-02 20:15:25 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-02 20:15:25 +0000
commit4b19ea5f055ab1c822f9ab6d57c8db59212db395 (patch)
treea9613560881a8f5db6cbd0a478a4581d85145086 /chrome/browser/task_manager
parentcff06c5779f85713bc4b09ce110ec26544322d64 (diff)
downloadchromium_src-4b19ea5f055ab1c822f9ab6d57c8db59212db395.zip
chromium_src-4b19ea5f055ab1c822f9ab6d57c8db59212db395.tar.gz
chromium_src-4b19ea5f055ab1c822f9ab6d57c8db59212db395.tar.bz2
Replace the TabContents* accessors with WebContents* in InterstitialPage, BackgroundContents and NativeTabContentsContainer and update the related code.
BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/9064002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116108 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager')
-rw-r--r--chrome/browser/task_manager/task_manager_resource_providers.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/task_manager/task_manager_resource_providers.cc b/chrome/browser/task_manager/task_manager_resource_providers.cc
index 0a18d2a..d38ad1b 100644
--- a/chrome/browser/task_manager/task_manager_resource_providers.cc
+++ b/chrome/browser/task_manager/task_manager_resource_providers.cc
@@ -547,9 +547,9 @@ TaskManagerBackgroundContentsResource::TaskManagerBackgroundContentsResource(
BackgroundContents* background_contents,
const string16& application_name)
: TaskManagerRendererResource(
- background_contents->tab_contents()->GetRenderProcessHost()->
+ background_contents->web_contents()->GetRenderProcessHost()->
GetHandle(),
- background_contents->tab_contents()->GetRenderViewHost()),
+ background_contents->web_contents()->GetRenderViewHost()),
background_contents_(background_contents),
application_name_(application_name) {
// Just use the same icon that other extension resources do.
@@ -616,7 +616,7 @@ TaskManagerBackgroundContentsResourceProvider::GetResource(
return NULL;
for (Resources::iterator i = resources_.begin(); i != resources_.end(); i++) {
- TabContents* tab = i->first->tab_contents();
+ WebContents* tab = i->first->web_contents();
if (tab->GetRenderProcessHost()->GetID() == render_process_host_id
&& tab->GetRenderViewHost()->routing_id() == routing_id) {
return i->second;
@@ -710,7 +710,7 @@ void TaskManagerBackgroundContentsResourceProvider::Add(
return;
// Don't add contents whose process is dead.
- if (!contents->tab_contents()->GetRenderProcessHost()->GetHandle())
+ if (!contents->web_contents()->GetRenderProcessHost()->GetHandle())
return;
// Should never add the same BackgroundContents twice.