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/urls_sql_handler.h" | 5 #include "components/history/core/browser/android/urls_sql_handler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 #include "components/history/core/browser/url_database.h" | 9 #include "components/history/core/browser/url_database.h" |
9 | 10 |
10 using base::Time; | 11 using base::Time; |
11 | 12 |
12 namespace history { | 13 namespace history { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 const HistoryAndBookmarkRow::ColumnID kInterestingColumns[] = { | 17 const HistoryAndBookmarkRow::ColumnID kInterestingColumns[] = { |
17 HistoryAndBookmarkRow::URL, HistoryAndBookmarkRow::VISIT_COUNT, | 18 HistoryAndBookmarkRow::URL, HistoryAndBookmarkRow::VISIT_COUNT, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 bool UrlsSQLHandler::Delete(const TableIDRows& ids_set) { | 146 bool UrlsSQLHandler::Delete(const TableIDRows& ids_set) { |
146 for (TableIDRows::const_iterator ids = ids_set.begin(); | 147 for (TableIDRows::const_iterator ids = ids_set.begin(); |
147 ids != ids_set.end(); ++ids) { | 148 ids != ids_set.end(); ++ids) { |
148 if (!url_db_->DeleteURLRow(ids->url_id)) | 149 if (!url_db_->DeleteURLRow(ids->url_id)) |
149 return false; | 150 return false; |
150 } | 151 } |
151 return true; | 152 return true; |
152 } | 153 } |
153 | 154 |
154 } // namespace history | 155 } // namespace history |
OLD | NEW |