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

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

Issue 2860553002: Clean up most of the ChromeOS headers in non-ChromeOS build (Closed)
Patch Set: rebase Created 3 years, 7 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"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/metrics/histogram_macros.h" 17 #include "base/metrics/histogram_macros.h"
18 #include "base/path_service.h" 18 #include "base/path_service.h"
19 #include "base/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
21 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "chrome/common/chrome_constants.h" 23 #include "chrome/common/chrome_constants.h"
24 #include "chrome/common/chrome_paths.h" 24 #include "chrome/common/chrome_paths.h"
25 #include "chromeos/chromeos_constants.h"
26 #include "components/history/core/browser/history_constants.h" 25 #include "components/history/core/browser/history_constants.h"
27 #include "components/webdata/common/webdata_constants.h" 26 #include "components/webdata/common/webdata_constants.h"
28 #include "content/public/common/content_constants.h" 27 #include "content/public/common/content_constants.h"
29 #include "sql/connection.h" 28 #include "sql/connection.h"
30 #include "sql/statement.h" 29 #include "sql/statement.h"
31 #include "storage/browser/database/database_tracker.h" 30 #include "storage/browser/database/database_tracker.h"
32 #include "third_party/sqlite/sqlite3.h" 31 #include "third_party/sqlite/sqlite3.h"
33 32
33 #if defined(OS_CHROMEOS)
34 #include "chromeos/chromeos_constants.h"
35 #endif // defined(OS_CHROMEOS)
36
34 namespace diagnostics { 37 namespace diagnostics {
35 38
36 namespace { 39 namespace {
37 40
38 // Generic diagnostic test class for checking SQLite database integrity. 41 // Generic diagnostic test class for checking SQLite database integrity.
39 class SqliteIntegrityTest : public DiagnosticsTest { 42 class SqliteIntegrityTest : public DiagnosticsTest {
40 public: 43 public:
41 // These are bit flags, so each value should be a power of two. 44 // These are bit flags, so each value should be a power of two.
42 enum Flags { 45 enum Flags {
43 NO_FLAGS_SET = 0, 46 NO_FLAGS_SET = 0,
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 base::FilePath(history::kTopSitesFilename)); 264 base::FilePath(history::kTopSitesFilename));
262 } 265 }
263 266
264 std::unique_ptr<DiagnosticsTest> MakeSqliteWebDataDbTest() { 267 std::unique_ptr<DiagnosticsTest> MakeSqliteWebDataDbTest() {
265 return base::MakeUnique<SqliteIntegrityTest>( 268 return base::MakeUnique<SqliteIntegrityTest>(
266 SqliteIntegrityTest::CRITICAL, DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST, 269 SqliteIntegrityTest::CRITICAL, DIAGNOSTICS_SQLITE_INTEGRITY_WEB_DATA_TEST,
267 base::FilePath(kWebDataFilename)); 270 base::FilePath(kWebDataFilename));
268 } 271 }
269 272
270 } // namespace diagnostics 273 } // namespace diagnostics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698