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/visit_sql_handler.h" | 5 #include "components/history/core/android/visit_sql_handler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "components/history/core/browser/url_database.h" | 8 #include "components/history/core/browser/url_database.h" |
9 #include "components/history/core/browser/visit_database.h" | 9 #include "components/history/core/browser/visit_database.h" |
10 | 10 |
11 using base::Time; | 11 using base::Time; |
12 | 12 |
13 namespace history { | 13 namespace history { |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 if (!visit_db_->GetVisitsForURL(url_id, &visits)) | 138 if (!visit_db_->GetVisitsForURL(url_id, &visits)) |
139 return false; | 139 return false; |
140 | 140 |
141 for (VisitVector::const_iterator v = visits.begin(); v != visits.end(); ++v) { | 141 for (VisitVector::const_iterator v = visits.begin(); v != visits.end(); ++v) { |
142 visit_db_->DeleteVisit(*v); | 142 visit_db_->DeleteVisit(*v); |
143 } | 143 } |
144 return true; | 144 return true; |
145 } | 145 } |
146 | 146 |
147 } // namespace history. | 147 } // namespace history. |
OLD | NEW |