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/recon_diagnostics.h" | 5 #include "chrome/browser/diagnostics/recon_diagnostics.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "chrome/browser/diagnostics/diagnostics_test.h" | 16 #include "chrome/browser/diagnostics/diagnostics_test.h" |
17 #include "chrome/browser/platform_util.h" | 17 #include "chrome/browser/platform_util.h" |
| 18 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" |
19 #include "chrome/common/chrome_version_info.h" | 20 #include "chrome/common/chrome_version_info.h" |
20 #include "chrome/common/json_value_serializer.h" | 21 #include "chrome/common/json_value_serializer.h" |
21 | 22 |
22 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
23 #include "base/win/windows_version.h" | 24 #include "base/win/windows_version.h" |
24 #include "chrome/installer/util/install_util.h" | 25 #include "chrome/installer/util/install_util.h" |
25 #endif | 26 #endif |
26 | 27 |
27 // Reconnaissance diagnostics. These are the first and most critical | 28 // Reconnaissance diagnostics. These are the first and most critical |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 path = path.Append(chrome::kBookmarksFileName); | 352 path = path.Append(chrome::kBookmarksFileName); |
352 return new JSONTest(path, ASCIIToUTF16("BookMarks JSON"), 2 * kOneMeg); | 353 return new JSONTest(path, ASCIIToUTF16("BookMarks JSON"), 2 * kOneMeg); |
353 } | 354 } |
354 | 355 |
355 DiagnosticTest* MakeLocalStateTest() { | 356 DiagnosticTest* MakeLocalStateTest() { |
356 FilePath path; | 357 FilePath path; |
357 PathService::Get(chrome::DIR_USER_DATA, &path); | 358 PathService::Get(chrome::DIR_USER_DATA, &path); |
358 path = path.Append(chrome::kLocalStateFilename); | 359 path = path.Append(chrome::kLocalStateFilename); |
359 return new JSONTest(path, ASCIIToUTF16("Local State JSON"), 50 * kOneKilo); | 360 return new JSONTest(path, ASCIIToUTF16("Local State JSON"), 50 * kOneKilo); |
360 } | 361 } |
OLD | NEW |