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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp

Issue 2542693002: Use WTF::TimeTicks to represent timestamp in Platform/Core event types (Closed)
Patch Set: Add TimeTicks::{To,In}Seconds utility functions Created 4 years 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: third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
index f0d8d4debbd1175128b1b2db70a352b351ec7ea2..ded553d793e340e62531f05ac3ff961e56bb05c1 100644
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
@@ -401,7 +401,8 @@ void HTMLAnchorElement::handleClick(Event* event) {
sendPings(completedURL);
ResourceRequest request(completedURL);
- request.setUIStartTime(event->platformTimeStamp());
+ request.setUIStartTime(
+ (event->platformTimeStamp() - TimeTicks()).InSecondsF());
request.setInputPerfMetricReportPolicy(
InputToLoadPerfMetricReportPolicy::ReportLink);

Powered by Google App Engine
This is Rietveld 408576698