Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: chrome/browser/diagnostics/sqlite_diagnostics.cc

Issue 316063003: Remove recovery diagnostics for the archived history database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/diagnostics/sqlite_diagnostics.h" 5 #include "chrome/browser/diagnostics/sqlite_diagnostics.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 DiagnosticsTest* MakeSqliteAppCacheDbTest() { 204 DiagnosticsTest* MakeSqliteAppCacheDbTest() {
205 base::FilePath appcache_dir(content::kAppCacheDirname); 205 base::FilePath appcache_dir(content::kAppCacheDirname);
206 base::FilePath appcache_db = 206 base::FilePath appcache_db =
207 appcache_dir.Append(appcache::kAppCacheDatabaseName); 207 appcache_dir.Append(appcache::kAppCacheDatabaseName);
208 return new SqliteIntegrityTest(SqliteIntegrityTest::NO_FLAGS_SET, 208 return new SqliteIntegrityTest(SqliteIntegrityTest::NO_FLAGS_SET,
209 DIAGNOSTICS_SQLITE_INTEGRITY_APP_CACHE_TEST, 209 DIAGNOSTICS_SQLITE_INTEGRITY_APP_CACHE_TEST,
210 appcache_db); 210 appcache_db);
211 } 211 }
212 212
213 DiagnosticsTest* MakeSqliteArchivedHistoryDbTest() {
214 return new SqliteIntegrityTest(
215 SqliteIntegrityTest::NO_FLAGS_SET,
216 DIAGNOSTICS_SQLITE_INTEGRITY_ARCHIVED_HISTORY_TEST,
217 base::FilePath(chrome::kArchivedHistoryFilename));
218 }
219
220 DiagnosticsTest* MakeSqliteCookiesDbTest() { 213 DiagnosticsTest* MakeSqliteCookiesDbTest() {
221 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, 214 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL,
222 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST, 215 DIAGNOSTICS_SQLITE_INTEGRITY_COOKIE_TEST,
223 base::FilePath(chrome::kCookieFilename)); 216 base::FilePath(chrome::kCookieFilename));
224 } 217 }
225 218
226 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest() { 219 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest() {
227 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName); 220 base::FilePath databases_dir(webkit_database::kDatabaseDirectoryName);
228 base::FilePath tracker_db = 221 base::FilePath tracker_db =
229 databases_dir.Append(webkit_database::kTrackerDatabaseFileName); 222 databases_dir.Append(webkit_database::kTrackerDatabaseFileName);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 base::FilePath(chrome::kThumbnailsFilename)); 256 base::FilePath(chrome::kThumbnailsFilename));
264 } 257 }
265 258
266 DiagnosticsTest* MakeSqliteWebDataDbTest() { 259 DiagnosticsTest* MakeSqliteWebDataDbTest() {
267 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, 260 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL,
268 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, 261 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST,
269 base::FilePath(kWebDataFilename)); 262 base::FilePath(kWebDataFilename));
270 } 263 }
271 264
272 } // namespace diagnostics 265 } // namespace diagnostics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698