| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/history/page_usage_data.h" | 5 #include "chrome/browser/history/page_usage_data.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 thumbnail_set_ = true; | 21 thumbnail_set_ = true; |
| 22 } | 22 } |
| 23 | 23 |
| 24 void PageUsageData::SetFavIcon(SkBitmap* img) { | 24 void PageUsageData::SetFavIcon(SkBitmap* img) { |
| 25 if (favicon_ && favicon_ != img) | 25 if (favicon_ && favicon_ != img) |
| 26 delete favicon_; | 26 delete favicon_; |
| 27 favicon_ = img; | 27 favicon_ = img; |
| 28 favicon_set_ = true; | 28 favicon_set_ = true; |
| 29 } | 29 } |
| 30 | 30 |
| 31 //static | 31 // static |
| 32 bool PageUsageData::Predicate(const PageUsageData* lhs, | 32 bool PageUsageData::Predicate(const PageUsageData* lhs, |
| 33 const PageUsageData* rhs) { | 33 const PageUsageData* rhs) { |
| 34 return lhs->GetScore() > rhs->GetScore(); | 34 return lhs->GetScore() > rhs->GetScore(); |
| 35 } | 35 } |
| OLD | NEW |