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" | 10 #include "base/basictypes.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 } | 221 } |
222 | 222 |
223 private: | 223 private: |
224 DISALLOW_COPY_AND_ASSIGN(DiagnosticsModelPosix); | 224 DISALLOW_COPY_AND_ASSIGN(DiagnosticsModelPosix); |
225 }; | 225 }; |
226 | 226 |
227 #endif | 227 #endif |
228 | 228 |
229 } // namespace | 229 } // namespace |
230 | 230 |
231 DiagnosticsModel* MakeDiagnosticsModel(const CommandLine& cmdline) { | 231 DiagnosticsModel* MakeDiagnosticsModel(const base::CommandLine& cmdline) { |
232 base::FilePath user_data_dir = | 232 base::FilePath user_data_dir = |
233 cmdline.GetSwitchValuePath(switches::kUserDataDir); | 233 cmdline.GetSwitchValuePath(switches::kUserDataDir); |
234 if (!user_data_dir.empty()) | 234 if (!user_data_dir.empty()) |
235 PathService::Override(chrome::DIR_USER_DATA, user_data_dir); | 235 PathService::Override(chrome::DIR_USER_DATA, user_data_dir); |
236 #if defined(OS_WIN) | 236 #if defined(OS_WIN) |
237 return new DiagnosticsModelWin(); | 237 return new DiagnosticsModelWin(); |
238 #elif defined(OS_MACOSX) | 238 #elif defined(OS_MACOSX) |
239 return new DiagnosticsModelMac(); | 239 return new DiagnosticsModelMac(); |
240 #elif defined(OS_POSIX) | 240 #elif defined(OS_POSIX) |
241 return new DiagnosticsModelPosix(); | 241 return new DiagnosticsModelPosix(); |
242 #endif | 242 #endif |
243 } | 243 } |
244 | 244 |
245 } // namespace diagnostics | 245 } // namespace diagnostics |
OLD | NEW |