OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/history/core/browser/android/favicon_sql_handler.h" | 5 #include "components/history/core/browser/android/favicon_sql_handler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
10 #include "components/history/core/browser/thumbnail_database.h" | 11 #include "components/history/core/browser/thumbnail_database.h" |
11 | 12 |
12 using base::Time; | 13 using base::Time; |
13 | 14 |
14 namespace history { | 15 namespace history { |
15 | 16 |
16 namespace { | 17 namespace { |
17 | 18 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 for (std::vector<favicon_base::FaviconID>::const_iterator i = ids.begin(); | 115 for (std::vector<favicon_base::FaviconID>::const_iterator i = ids.begin(); |
115 i != ids.end(); | 116 i != ids.end(); |
116 ++i) { | 117 ++i) { |
117 if (!thumbnail_db_->HasMappingFor(*i) && !thumbnail_db_->DeleteFavicon(*i)) | 118 if (!thumbnail_db_->HasMappingFor(*i) && !thumbnail_db_->DeleteFavicon(*i)) |
118 return false; | 119 return false; |
119 } | 120 } |
120 return true; | 121 return true; |
121 } | 122 } |
122 | 123 |
123 } // namespace history. | 124 } // namespace history. |
OLD | NEW |