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

Unified Diff: net/cert/ct_log_response_parser.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/cert/crl_set_storage.cc ('k') | net/cert/x509_certificate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_log_response_parser.cc
diff --git a/net/cert/ct_log_response_parser.cc b/net/cert/ct_log_response_parser.cc
index bd59a9eed128b4aae0675e22ad69ec0d29303214..f7cc25fe654cfc0a03b1ca8fc63fca39600e6cf6 100644
--- a/net/cert/ct_log_response_parser.cc
+++ b/net/cert/ct_log_response_parser.cc
@@ -127,7 +127,8 @@ bool FillSignedTreeHead(const base::StringPiece& json_signed_tree_head,
signed_tree_head->tree_size = parsed_sth.tree_size;
signed_tree_head->timestamp =
base::Time::UnixEpoch() +
- base::TimeDelta::FromMilliseconds(parsed_sth.timestamp);
+ base::TimeDelta::FromMilliseconds(
+ static_cast<int64>(parsed_sth.timestamp));
signed_tree_head->signature = parsed_sth.signature;
memcpy(signed_tree_head->sha256_root_hash,
parsed_sth.sha256_root_hash.c_str(),
« no previous file with comments | « net/cert/crl_set_storage.cc ('k') | net/cert/x509_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698