Chromium Code Reviews| Index: net/disk_cache/blockfile/eviction.cc |
| diff --git a/net/disk_cache/blockfile/eviction.cc b/net/disk_cache/blockfile/eviction.cc |
| index 52fca5fb7d0254ca1c0194bfd8a3268e9e48310e..68f65b4bdcbe434b7fffeb13f0d3376727003225 100644 |
| --- a/net/disk_cache/blockfile/eviction.cc |
| +++ b/net/disk_cache/blockfile/eviction.cc |
| @@ -275,12 +275,10 @@ 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. |
| - Time::Exploded old = {0}; |
| - old.year = 2009; |
| - old.month = 3; |
| - old.day_of_month = 1; |
| - header_->create_time = Time::FromLocalExploded(old).ToInternalValue(); |
| + // lets save some create_time. Conversion cannot fail here. |
| + const base::Time time_2009_3_1 = |
| + base::Time::FromInternalValue(12985574400000000); |
| + header_->create_time = time_2009_3_1.ToInternalValue(); |
|
eroman
2016/10/27 21:44:34
For the record -- this is a bit different from wha
maksims (do not use this acc)
2016/11/29 07:38:56
Ok, thanks. Let it be like this.
|
| } |
| } |
| } |