Chromium Code Reviews| Index: components/history/core/browser/history_backend.cc |
| diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc |
| index 2ab8db29706c31618fd98fa350acc6caad45a35c..9152bfb0e11a5717a95b7b551f002d1306f590aa 100644 |
| --- a/components/history/core/browser/history_backend.cc |
| +++ b/components/history/core/browser/history_backend.cc |
| @@ -1509,10 +1509,9 @@ void HistoryBackend::GetLargestFaviconForURL( |
| favicon_base::FaviconRawBitmapResult bitmap_result; |
| bitmap_result.icon_url = icon_url; |
| bitmap_result.icon_type = icon_type; |
| - if (!thumbnail_db_->GetFaviconBitmap(largest_icon.bitmap_id, |
| - &last_updated, nullptr, |
| - &bitmap_result.bitmap_data, |
| - &bitmap_result.pixel_size)) { |
| + if (!thumbnail_db_->GetFaviconBitmap( |
| + largest_icon.bitmap_id, /*access_time=*/Time::Now(), &last_updated, |
|
jkrcal
2017/05/02 13:57:25
For all call 3 sites here, I need to pass Time() i
jkrcal
2017/05/15 14:26:57
Because of the privacy discussion, I still believe
sky
2017/05/15 15:57:13
You will have to change callers to supply whether
jkrcal
2017/05/15 18:36:29
Huh, now I see better why you pushed in the direct
|
| + &bitmap_result.bitmap_data, &bitmap_result.pixel_size)) { |
| return; |
| } |
| @@ -1994,8 +1993,8 @@ bool HistoryBackend::IsFaviconBitmapDataEqual( |
| return false; |
| scoped_refptr<base::RefCountedMemory> original_bitmap_data; |
| - thumbnail_db_->GetFaviconBitmap(bitmap_id, nullptr, nullptr, |
| - &original_bitmap_data, nullptr); |
| + thumbnail_db_->GetFaviconBitmap(bitmap_id, /*access_time=*/Time::Now(), |
| + nullptr, &original_bitmap_data, nullptr); |
| return new_bitmap_data->Equals(original_bitmap_data); |
| } |
| @@ -2083,9 +2082,9 @@ bool HistoryBackend::GetFaviconBitmapResultsForBestMatch( |
| favicon_base::FaviconRawBitmapResult bitmap_result; |
| bitmap_result.icon_url = icon_url; |
| bitmap_result.icon_type = icon_type; |
| - if (!thumbnail_db_->GetFaviconBitmap(best_bitmap_ids[i], &last_updated, |
| - nullptr, &bitmap_result.bitmap_data, |
| - &bitmap_result.pixel_size)) { |
| + if (!thumbnail_db_->GetFaviconBitmap( |
| + best_bitmap_ids[i], /*access_time=*/Time::Now(), &last_updated, |
| + &bitmap_result.bitmap_data, &bitmap_result.pixel_size)) { |
| return false; |
| } |