| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/diagnostics/sqlite_diagnostics.h" | 5 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" |
| 6 | 6 |
| 7 #include "app/sql/connection.h" | 7 #include "app/sql/connection.h" |
| 8 #include "app/sql/diagnostic_error_delegate.h" | 8 #include "app/sql/diagnostic_error_delegate.h" |
| 9 #include "app/sql/init_status.h" | |
| 10 #include "app/sql/statement.h" | 9 #include "app/sql/statement.h" |
| 11 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 12 #include "base/histogram.h" | 11 #include "base/histogram.h" |
| 13 #include "base/logging.h" | 12 #include "base/logging.h" |
| 14 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 15 #include "base/singleton.h" | 14 #include "base/singleton.h" |
| 16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 17 #include "chrome/common/chrome_constants.h" | 16 #include "chrome/common/chrome_constants.h" |
| 18 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
| 19 #include "third_party/sqlite/preprocessed/sqlite3.h" | 18 #include "third_party/sqlite/preprocessed/sqlite3.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 appcache_db); | 157 appcache_db); |
| 159 } | 158 } |
| 160 | 159 |
| 161 DiagnosticTest* MakeSqliteWebDatabaseTrackerDbTest() { | 160 DiagnosticTest* MakeSqliteWebDatabaseTrackerDbTest() { |
| 162 FilePath databases_dir(webkit_database::kDatabaseDirectoryName); | 161 FilePath databases_dir(webkit_database::kDatabaseDirectoryName); |
| 163 FilePath tracker_db = | 162 FilePath tracker_db = |
| 164 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); | 163 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); |
| 165 return new SqliteIntegrityTest(false, ASCIIToUTF16("DatabaseTracker DB"), | 164 return new SqliteIntegrityTest(false, ASCIIToUTF16("DatabaseTracker DB"), |
| 166 tracker_db); | 165 tracker_db); |
| 167 } | 166 } |
| OLD | NEW |