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

Unified Diff: components/web_view/frame_tree.cc

Issue 1391963004: Correctly record and pass around navigation start time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/web_view/frame_tree.h ('k') | components/web_view/navigation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/frame_tree.cc
diff --git a/components/web_view/frame_tree.cc b/components/web_view/frame_tree.cc
index e8d071fcd8902a4c2e50e0141534eaecfa849fe1..f3b5a7c6da72c684fc688db3faa100c3c84065bf 100644
--- a/components/web_view/frame_tree.cc
+++ b/components/web_view/frame_tree.cc
@@ -15,7 +15,8 @@ FrameTree::FrameTree(uint32_t root_app_id,
FrameTreeDelegate* delegate,
mojom::FrameClient* root_client,
scoped_ptr<FrameUserData> user_data,
- const Frame::ClientPropertyMap& client_properties)
+ const Frame::ClientPropertyMap& client_properties,
+ base::TimeTicks navigation_start_time)
: view_(view),
delegate_(delegate),
root_(new Frame(this,
@@ -28,7 +29,7 @@ FrameTree::FrameTree(uint32_t root_app_id,
client_properties)),
progress_(0.f),
change_id_(1u) {
- root_->Init(nullptr, view_tree_client.Pass(), nullptr);
+ root_->Init(nullptr, view_tree_client.Pass(), nullptr, navigation_start_time);
}
FrameTree::~FrameTree() {
@@ -54,7 +55,7 @@ Frame* FrameTree::CreateChildFrame(
Frame* frame =
new Frame(this, frame_view, frame_id, app_id, ViewOwnership::OWNS_VIEW,
raw_client, user_data.Pass(), client_properties);
- frame->Init(parent, nullptr, frame_request.Pass());
+ frame->Init(parent, nullptr, frame_request.Pass(), base::TimeTicks());
return frame;
}
« no previous file with comments | « components/web_view/frame_tree.h ('k') | components/web_view/navigation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698