summaryrefslogtreecommitdiffstats
path: root/chrome/browser/worker_host
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 16:24:33 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 16:24:33 +0000
commitbf5c2ff3931c43b98095d33f8bc1b98379afe16f (patch)
tree7c87f5a7f693ac8b5a43cf5f2eebe0ac462b1853 /chrome/browser/worker_host
parente9d7b6cf453475ad269785f3775700339c8a03fb (diff)
downloadchromium_src-bf5c2ff3931c43b98095d33f8bc1b98379afe16f.zip
chromium_src-bf5c2ff3931c43b98095d33f8bc1b98379afe16f.tar.gz
chromium_src-bf5c2ff3931c43b98095d33f8bc1b98379afe16f.tar.bz2
Split out some of the RVHDelegate functions into separate sub-classes. To limit
the scope, this patch just contains those delegate functions implemented only by TabContents, plus the favicon functions implemented by the FavIconHelper. The only changes are re-ordering and moving the functions, and changes in the way that the functions are called through the new optional delegate. Review URL: http://codereview.chromium.org/149239 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/worker_host')
-rw-r--r--chrome/browser/worker_host/worker_process_host.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/worker_host/worker_process_host.cc b/chrome/browser/worker_host/worker_process_host.cc
index ecf8a3d..9672dd1 100644
--- a/chrome/browser/worker_host/worker_process_host.cc
+++ b/chrome/browser/worker_host/worker_process_host.cc
@@ -36,8 +36,12 @@ class WorkerCrashTask : public Task {
void Run() {
RenderViewHost* host =
RenderViewHost::FromID(render_process_id_, render_view_id_);
- if (host)
- host->delegate()->OnCrashedWorker();
+ if (host) {
+ RenderViewHostDelegate::BrowserIntegration* integration_delegate =
+ host->delegate()->GetBrowserIntegrationDelegate();
+ if (integration_delegate)
+ integration_delegate->OnCrashedWorker();
+ }
}
private: