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

Unified Diff: content/browser/devtools/protocol/network_handler.cc

Issue 2844133005: Use completion_time to call LoadingFinished of DevTools's Network event for navigation preload (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/network_handler.cc
diff --git a/content/browser/devtools/protocol/network_handler.cc b/content/browser/devtools/protocol/network_handler.cc
index 700f10f38b400d42a1d96afc63b03c03970f21d7..1d708b09faeaf228e007bfc7fa872204e89c2c91 100644
--- a/content/browser/devtools/protocol/network_handler.cc
+++ b/content/browser/devtools/protocol/network_handler.cc
@@ -704,8 +704,9 @@ void NetworkHandler::NavigationPreloadCompleted(
completion_status.error_code == net::Error::ERR_ABORTED);
}
frontend_->LoadingFinished(
- request_id, base::TimeTicks::Now().ToInternalValue() /
- static_cast<double>(base::Time::kMicrosecondsPerSecond),
+ request_id,
+ completion_status.completion_time.ToInternalValue() /
+ static_cast<double>(base::Time::kMicrosecondsPerSecond),
completion_status.encoded_data_length);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698