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