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

Unified Diff: components/html_viewer/html_document.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/html_viewer/html_document.cc
diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc
index 1d976f79078b3ee9600a76339a3e36c406778b99..cba5614af78a4b9b7dcf4bc784cb582fc7c3d330 100644
--- a/components/html_viewer/html_document.cc
+++ b/components/html_viewer/html_document.cc
@@ -10,6 +10,7 @@
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/thread_task_runner_handle.h"
+#include "base/time/time.h"
#include "components/html_viewer/blink_url_request_type_converters.h"
#include "components/html_viewer/devtools_agent_impl.h"
#include "components/html_viewer/document_resource_waiter.h"
@@ -160,6 +161,8 @@ void HTMLDocument::Load() {
extra_data->synthetic_response =
resource_waiter_->ReleaseURLResponse().Pass();
+ base::TimeTicks navigation_start_time =
+ resource_waiter_->navigation_start_time();
frame_ = HTMLFrameTreeManager::CreateFrameAndAttachToTree(
global_state_, view, resource_waiter_.Pass(), this);
@@ -185,7 +188,7 @@ void HTMLDocument::Load() {
web_request.setURL(url);
web_request.setExtraData(extra_data.release());
- frame_->LoadRequest(web_request);
+ frame_->LoadRequest(web_request, navigation_start_time);
}
HTMLDocument::BeforeLoadCache* HTMLDocument::GetBeforeLoadCache() {

Powered by Google App Engine
This is Rietveld 408576698