Commit 28e7ee60 authored by Andrey Kosyakov's avatar Andrey Kosyakov Committed by Commit Bot

DevTools: fix SCT timestamp in SecurityDetails of frame resources

Bug: 836732
Change-Id: Ia8b1fbfca1cb1a30289337571e8db6a3163751ac
Reviewed-on: https://chromium-review.googlesource.com/1033721Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#554553}
parent e39cab4d
......@@ -1329,8 +1329,8 @@ std::unique_ptr<protocol::Network::SecurityDetails> BuildSecurityDetails(
.SetLogDescription(sct.sct->log_description)
.SetLogId(base::HexEncode(sct.sct->log_id.c_str(),
sct.sct->log_id.length()))
.SetTimestamp(
(sct.sct->timestamp - base::Time()).InMillisecondsF())
.SetTimestamp((sct.sct->timestamp - base::Time::UnixEpoch())
.InMillisecondsF())
.SetHashAlgorithm(net::ct::HashAlgorithmToString(
sct.sct->signature.hash_algorithm))
.SetSignatureAlgorithm(net::ct::SignatureAlgorithmToString(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment