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

Unified Diff: components/web_view/pending_web_view_load.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
Index: components/web_view/pending_web_view_load.cc
diff --git a/components/web_view/pending_web_view_load.cc b/components/web_view/pending_web_view_load.cc
index 54fa39b54afdf8930f8804286ce56a1311b992b9..fcb40dbe6010525ad687893e62d57cb9c86f2a69 100644
--- a/components/web_view/pending_web_view_load.cc
+++ b/components/web_view/pending_web_view_load.cc
@@ -19,6 +19,8 @@ PendingWebViewLoad::~PendingWebViewLoad() {}
void PendingWebViewLoad::Init(mojo::URLRequestPtr request) {
DCHECK(!frame_connection_);
pending_url_ = GURL(request->url);
+ navigation_start_time_ =
+ base::TimeTicks::FromInternalValue(request->originating_time_ticks);
frame_connection_.reset(new FrameConnection);
frame_connection_->Init(web_view_->app_, request.Pass(),
base::Bind(&PendingWebViewLoad::OnGotContentHandlerID,

Powered by Google App Engine
This is Rietveld 408576698