Index: net/disk_cache/blockfile/eviction.cc |
diff --git a/net/disk_cache/blockfile/eviction.cc b/net/disk_cache/blockfile/eviction.cc |
index 860b8b11006ef98e9f52e786a39b5699bc1474c2..0ac086f76db2719abf12ed5c0779ffa67060ca41 100644 |
--- a/net/disk_cache/blockfile/eviction.cc |
+++ b/net/disk_cache/blockfile/eviction.cc |
@@ -274,12 +274,15 @@ void Eviction::ReportTrimTimes(EntryImpl* entry) { |
backend_->FirstEviction(); |
} else { |
// This is an old file, but we may want more reports from this user so |
- // lets save some create_time. |
+ // lets save some create_time. Conversion cannot fail here. |
Time::Exploded old = {0}; |
old.year = 2009; |
old.month = 3; |
old.day_of_month = 1; |
- header_->create_time = Time::FromLocalExploded(old).ToInternalValue(); |
+ base::Time out_time; |
+ bool conversion_success = Time::FromLocalExploded(old, &out_time); |
+ DCHECK(conversion_success); |
+ header_->create_time = out_time.ToInternalValue(); |
} |
} |
} |