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

Unified Diff: content/browser/frame_host/navigator_impl.cc

Issue 946543003: PlzNavigate: have renderer-initiated navigations be same-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 547c5515f8f740f20db596244f4265a34057b461..92bd2abc5cef12214577bb2fcb4050353f262c09 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -409,11 +409,8 @@ bool NavigatorImpl::NavigateToEntry(
}
// Notify observers about navigation.
- if (delegate_) {
- delegate_->DidStartNavigationToPendingEntry(dest_render_frame_host,
- entry.GetURL(),
- reload_type);
- }
+ if (delegate_)
+ delegate_->DidStartNavigationToPendingEntry(entry.GetURL(), reload_type);
return true;
}
@@ -859,6 +856,9 @@ void NavigatorImpl::RequestNavigation(
navigation_request_map_.get(frame_tree_node_id);
request_to_send->SetWaitingForRendererResponse();
frame_tree_node->current_frame_host()->DispatchBeforeUnload(true);
+
+ if (delegate_)
clamy 2015/02/23 10:52:34 As in the comment in the header file, I don't thin
carlosk 2015/03/04 19:42:40 Change was moved to another CL.
+ delegate_->DidStartNavigationToPendingEntry(entry.GetURL(), reload_type);
}
void NavigatorImpl::BeginNavigation(FrameTreeNode* frame_tree_node) {

Powered by Google App Engine
This is Rietveld 408576698