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