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

Unified Diff: content/public/browser/navigation_handle.cc

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 2 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: 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());
}

Powered by Google App Engine
This is Rietveld 408576698