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

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

Issue 2038933002: Drop diagnostics reference to out-dated database. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comma to semicolon Created 4 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
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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 DiagnosticsTest* MakeSqliteNssKeyDbTest() { 239 DiagnosticsTest* MakeSqliteNssKeyDbTest() {
240 base::FilePath home_dir; 240 base::FilePath home_dir;
241 PathService::Get(base::DIR_HOME, &home_dir); 241 PathService::Get(base::DIR_HOME, &home_dir);
242 return new SqliteIntegrityTest(SqliteIntegrityTest::REMOVE_IF_CORRUPT, 242 return new SqliteIntegrityTest(SqliteIntegrityTest::REMOVE_IF_CORRUPT,
243 DIAGNOSTICS_SQLITE_INTEGRITY_NSS_KEY_TEST, 243 DIAGNOSTICS_SQLITE_INTEGRITY_NSS_KEY_TEST,
244 home_dir.Append(chromeos::kNssKeyDbPath)); 244 home_dir.Append(chromeos::kNssKeyDbPath));
245 } 245 }
246 #endif // defined(OS_CHROMEOS) 246 #endif // defined(OS_CHROMEOS)
247 247
248 DiagnosticsTest* MakeSqliteThumbnailsDbTest() { 248 DiagnosticsTest* MakeSqliteFaviconsDbTest() {
249 return new SqliteIntegrityTest(SqliteIntegrityTest::NO_FLAGS_SET, 249 return new SqliteIntegrityTest(SqliteIntegrityTest::NO_FLAGS_SET,
250 DIAGNOSTICS_SQLITE_INTEGRITY_THUMBNAILS_TEST, 250 DIAGNOSTICS_SQLITE_INTEGRITY_FAVICONS_TEST,
251 base::FilePath(history::kThumbnailsFilename)); 251 base::FilePath(history::kFaviconsFilename));
252 }
253
254 DiagnosticsTest* MakeSqliteTopSitesDbTest() {
255 return new SqliteIntegrityTest(SqliteIntegrityTest::NO_FLAGS_SET,
256 DIAGNOSTICS_SQLITE_INTEGRITY_TOPSITES_TEST,
257 base::FilePath(history::kTopSitesFilename));
252 } 258 }
253 259
254 DiagnosticsTest* MakeSqliteWebDataDbTest() { 260 DiagnosticsTest* MakeSqliteWebDataDbTest() {
255 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL, 261 return new SqliteIntegrityTest(SqliteIntegrityTest::CRITICAL,
256 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, 262 DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST,
257 base::FilePath(kWebDataFilename)); 263 base::FilePath(kWebDataFilename));
258 } 264 }
259 265
260 } // namespace diagnostics 266 } // namespace diagnostics
OLDNEW
« no previous file with comments | « chrome/browser/diagnostics/sqlite_diagnostics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698