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

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

Issue 761013003: PlzNavigate: add support in several navigation controller unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved the functions to the TestRenderFrameHost Created 6 years 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 20f9a5159b51136f4a24deba1d2401ebe0028f75..c483c2967ac17ba002e609e2c9d08520e9e0b177 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -886,10 +886,12 @@ bool NavigatorImpl::RequestNavigation(
navigation_request_map_.set(frame_tree_node_id, navigation_request.Pass());
if (frame_tree_node->current_frame_host()->IsRenderFrameLive()) {
+ NavigationRequest* request_to_send =
+ navigation_request_map_.get(frame_tree_node_id);
frame_tree_node->current_frame_host()->Send(new FrameMsg_RequestNavigation(
frame_tree_node->current_frame_host()->GetRoutingID(),
- navigation_request_map_.get(frame_tree_node_id)->common_params(),
- request_params));
+ request_to_send->common_params(), request_params));
+ request_to_send->SetWaitingForRendererResponse();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698