| 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/android_urls_sql_handler.h" | 5 #include "components/history/core/browser/android/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/android/android_urls_database.h" | 9 #include "components/history/core/browser/android/android_urls_database.h" |
| 9 | 10 |
| 10 namespace history { | 11 namespace history { |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 // The interesting columns of this handler. | 15 // The interesting columns of this handler. |
| 15 const HistoryAndBookmarkRow::ColumnID kInterestingColumns[] = { | 16 const HistoryAndBookmarkRow::ColumnID kInterestingColumns[] = { |
| 16 HistoryAndBookmarkRow::RAW_URL, HistoryAndBookmarkRow::URL_ID }; | 17 HistoryAndBookmarkRow::RAW_URL, HistoryAndBookmarkRow::URL_ID }; |
| 17 | 18 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 id != ids_set.end(); ++id) | 55 id != ids_set.end(); ++id) |
| 55 ids.push_back(id->url_id); | 56 ids.push_back(id->url_id); |
| 56 | 57 |
| 57 if (!ids.size()) | 58 if (!ids.size()) |
| 58 return true; | 59 return true; |
| 59 | 60 |
| 60 return android_urls_db_->DeleteAndroidURLRows(ids); | 61 return android_urls_db_->DeleteAndroidURLRows(ids); |
| 61 } | 62 } |
| 62 | 63 |
| 63 } // namespace history. | 64 } // namespace history. |
| OLD | NEW |