Index: chrome/browser/renderer_host/offline_resource_throttle.cc |
=================================================================== |
--- chrome/browser/renderer_host/offline_resource_throttle.cc (revision 138257) |
+++ chrome/browser/renderer_host/offline_resource_throttle.cc (working copy) |
@@ -16,9 +16,9 @@ |
#include "chrome/common/url_constants.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/render_view_host.h" |
-#include "content/public/browser/render_view_host_delegate.h" |
#include "content/public/browser/resource_context.h" |
#include "content/public/browser/resource_throttle_controller.h" |
+#include "content/public/browser/web_contents.h" |
#include "net/base/net_errors.h" |
#include "net/base/net_util.h" |
#include "net/base/network_change_notifier.h" |
@@ -48,7 +48,7 @@ |
RenderViewHost* render_view_host = |
RenderViewHost::FromID(render_process_id, render_view_id); |
WebContents* web_contents = render_view_host ? |
- render_view_host->GetDelegate()->GetAsWebContents() : NULL; |
+ WebContents::FromRenderViewHost(render_view_host) : NULL; |
// There is a chance that the tab closed after we decided to show |
// the offline page on the IO thread and before we actually show the |
// offline page here on the UI thread. |