| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <limits> | 5 #include <limits> |
| 6 #include <set> | 6 #include <set> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "chrome/browser/history/text_database.h" | 9 #include "chrome/browser/history/text_database.h" |
| 10 | 10 |
| 11 #include "app/sql/connection.h" | |
| 12 #include "app/sql/statement.h" | 11 #include "app/sql/statement.h" |
| 13 #include "app/sql/transaction.h" | 12 #include "app/sql/transaction.h" |
| 14 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 15 #include "base/histogram.h" | 14 #include "base/histogram.h" |
| 16 #include "base/logging.h" | 15 #include "base/logging.h" |
| 17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 18 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 19 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" | 18 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" |
| 20 | 19 |
| 21 // There are two tables in each database, one full-text search (FTS) table which | 20 // There are two tables in each database, one full-text search (FTS) table which |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 } else { | 368 } else { |
| 370 // Since we got the results in order, we know the last item is the last | 369 // Since we got the results in order, we know the last item is the last |
| 371 // time we considered. | 370 // time we considered. |
| 372 *first_time_searched = results->back().time; | 371 *first_time_searched = results->back().time; |
| 373 } | 372 } |
| 374 | 373 |
| 375 statement.Reset(); | 374 statement.Reset(); |
| 376 } | 375 } |
| 377 | 376 |
| 378 } // namespace history | 377 } // namespace history |
| OLD | NEW |