Index: content/public/browser/navigation_handle.cc |
diff --git a/content/public/browser/navigation_handle.cc b/content/public/browser/navigation_handle.cc |
index f5eaa118425d17c5068ee3b31a368c68f7215015..ffd817ac9069e4ee8428c84f97db669872824117 100644 |
--- a/content/public/browser/navigation_handle.cc |
+++ b/content/public/browser/navigation_handle.cc |
@@ -6,6 +6,7 @@ |
#include "content/browser/frame_host/navigation_handle_impl.h" |
#include "content/browser/frame_host/navigator.h" |
+#include "content/browser/frame_host/render_frame_host_impl.h" |
#include "content/browser/web_contents/web_contents_impl.h" |
namespace content { |
@@ -21,9 +22,10 @@ WebContents* NavigationHandle::GetWebContents() { |
scoped_ptr<NavigationHandle> NavigationHandle::CreateNavigationHandleForTesting( |
const GURL& url, |
bool is_main_frame, |
- WebContents* web_contents) { |
+ RenderFrameHost* render_frame_host) { |
scoped_ptr<NavigationHandleImpl> handle_impl = NavigationHandleImpl::Create( |
- url, is_main_frame, static_cast<WebContentsImpl*>(web_contents)); |
+ url, is_main_frame, |
+ static_cast<RenderFrameHostImpl*>(render_frame_host)->frame_tree_node()); |
return scoped_ptr<NavigationHandle>(handle_impl.Pass()); |
} |