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

Unified Diff: chrome/browser/renderer_host/offline_resource_throttle.cc

Issue 10421003: Remove a bunch of trivial render_view_host_delegate.h includes in chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 7 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/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.
« no previous file with comments | « chrome/browser/notifications/balloon_host.h ('k') | chrome/browser/safe_browsing/client_side_detection_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698