Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3964)

Unified Diff: chrome/browser/worker_host/worker_process_host.cc

Issue 149239: Split out some of the RVHDelegate functions into separate sub-classes. To lim... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/worker_host/worker_process_host.cc
===================================================================
--- chrome/browser/worker_host/worker_process_host.cc (revision 19988)
+++ chrome/browser/worker_host/worker_process_host.cc (working copy)
@@ -36,8 +36,12 @@
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:
« chrome/browser/tab_contents/tab_contents.cc ('K') | « chrome/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698