| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/app_paths.h" | 7 #include "app/app_paths.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.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/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "chrome/app/chrome_version_info.h" | 15 #include "chrome/app/chrome_version_info.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/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
| 18 #include "chrome/common/platform_util.h" | |
| 19 #include "chrome/common/json_value_serializer.h" | 19 #include "chrome/common/json_value_serializer.h" |
| 20 | 20 |
| 21 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
| 22 #include "base/win_util.h" | 22 #include "base/win_util.h" |
| 23 #include "chrome/installer/util/install_util.h" | 23 #include "chrome/installer/util/install_util.h" |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 // Reconnaissance diagnostics. These are the first and most critical | 26 // Reconnaissance diagnostics. These are the first and most critical |
| 27 // diagnostic tests. Here we check for the existence of critical files. | 27 // diagnostic tests. Here we check for the existence of critical files. |
| 28 // TODO(cpu): Define if it makes sense to localize strings. | 28 // TODO(cpu): Define if it makes sense to localize strings. |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 path = path.Append(chrome::kBookmarksFileName); | 355 path = path.Append(chrome::kBookmarksFileName); |
| 356 return new JSONTest(path, ASCIIToUTF16("BookMarks JSON"), 2 * kOneMeg); | 356 return new JSONTest(path, ASCIIToUTF16("BookMarks JSON"), 2 * kOneMeg); |
| 357 } | 357 } |
| 358 | 358 |
| 359 DiagnosticTest* MakeLocalStateTest() { | 359 DiagnosticTest* MakeLocalStateTest() { |
| 360 FilePath path; | 360 FilePath path; |
| 361 PathService::Get(chrome::DIR_USER_DATA, &path); | 361 PathService::Get(chrome::DIR_USER_DATA, &path); |
| 362 path = path.Append(chrome::kLocalStateFilename); | 362 path = path.Append(chrome::kLocalStateFilename); |
| 363 return new JSONTest(path, ASCIIToUTF16("Local State JSON"), 50 * kOneKilo); | 363 return new JSONTest(path, ASCIIToUTF16("Local State JSON"), 50 * kOneKilo); |
| 364 } | 364 } |
| OLD | NEW |