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

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

Issue 1427633004: Send navigation_start to the browser in DidStartProvisionalLoad IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation_start_renderer
Patch Set: Comments Created 5 years, 1 month 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/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 5d5be241a5313fcd6746e3a5ef53567fe924970e..0bdece2863c1f2b2ad52f43bf5e818d8a361f86d 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -804,9 +804,11 @@ void RenderFrameHostImpl::OnDocumentOnLoadCompleted(
delegate_->DocumentOnLoadCompleted(this);
}
-void RenderFrameHostImpl::OnDidStartProvisionalLoadForFrame(const GURL& url) {
- frame_tree_node_->navigator()->DidStartProvisionalLoad(
- this, url);
+void RenderFrameHostImpl::OnDidStartProvisionalLoadForFrame(
+ const GURL& url,
+ const base::TimeTicks& navigation_start) {
+ frame_tree_node_->navigator()->DidStartProvisionalLoad(this, url,
+ navigation_start);
}
void RenderFrameHostImpl::OnDidFailProvisionalLoadWithError(
@@ -946,7 +948,7 @@ void RenderFrameHostImpl::OnDidCommitProvisionalLoad(const IPC::Message& msg) {
// message.
if (!navigation_handle_) {
navigation_handle_ = NavigationHandleImpl::Create(
- validated_params.url, frame_tree_node_);
+ validated_params.url, frame_tree_node_, base::TimeTicks::Now());
nasko 2015/11/13 21:52:54 Why not the actual start time from the renderer pr
Charlie Harrison 2015/11/14 00:25:00 We discussed this briefly over email, but I think
}
accessibility_reset_count_ = 0;

Powered by Google App Engine
This is Rietveld 408576698