| Index: content/browser/tab_contents/interstitial_page.cc
|
| diff --git a/content/browser/tab_contents/interstitial_page.cc b/content/browser/tab_contents/interstitial_page.cc
|
| index 48bbb44f10836eee70d235d6dde30dfd28ae3cd2..3e801c7dde2415ca467d5365ea688925d4608462 100644
|
| --- a/content/browser/tab_contents/interstitial_page.cc
|
| +++ b/content/browser/tab_contents/interstitial_page.cc
|
| @@ -281,8 +281,9 @@ void InterstitialPage::Observe(int type,
|
| case content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED:
|
| if (action_taken_ == NO_ACTION) {
|
| // The RenderViewHost is being destroyed (as part of the tab being
|
| - // closed), make sure we clear the blocked requests.
|
| - RenderViewHost* rvh = Source<RenderViewHost>(source).ptr();
|
| + // closed); make sure we clear the blocked requests.
|
| + RenderViewHost* rvh = static_cast<RenderViewHost*>(
|
| + Source<RenderWidgetHost>(source).ptr());
|
| DCHECK(rvh->process()->id() == original_child_id_ &&
|
| rvh->routing_id() == original_rvh_id_);
|
| TakeActionOnResourceDispatcher(CANCEL);
|
|
|