OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/diagnostics_model.h" | 5 #include "chrome/browser/diagnostics/diagnostics_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/command_line.h" | 10 #include "base/command_line.h" |
12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 16 #include "build/build_config.h" |
16 #include "chrome/browser/diagnostics/diagnostics_test.h" | 17 #include "chrome/browser/diagnostics/diagnostics_test.h" |
17 #include "chrome/browser/diagnostics/recon_diagnostics.h" | 18 #include "chrome/browser/diagnostics/recon_diagnostics.h" |
18 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" | 19 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" |
19 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
20 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
21 | 22 |
22 namespace diagnostics { | 23 namespace diagnostics { |
23 | 24 |
24 // This is the count of diagnostic tests on each platform. This should | 25 // This is the count of diagnostic tests on each platform. This should |
25 // only be used by testing code. | 26 // only be used by testing code. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 #if defined(OS_WIN) | 237 #if defined(OS_WIN) |
237 return new DiagnosticsModelWin(); | 238 return new DiagnosticsModelWin(); |
238 #elif defined(OS_MACOSX) | 239 #elif defined(OS_MACOSX) |
239 return new DiagnosticsModelMac(); | 240 return new DiagnosticsModelMac(); |
240 #elif defined(OS_POSIX) | 241 #elif defined(OS_POSIX) |
241 return new DiagnosticsModelPosix(); | 242 return new DiagnosticsModelPosix(); |
242 #endif | 243 #endif |
243 } | 244 } |
244 | 245 |
245 } // namespace diagnostics | 246 } // namespace diagnostics |
OLD | NEW |