| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/syslogs/syslogs_fetcher_factory.h" |
| 6 |
| 7 #include "base/memory/singleton.h" |
| 8 #include "chrome/browser/chromeos/syslogs/commandline_fetcher.h" |
| 9 #include "chrome/browser/chromeos/syslogs/debugd_log_fetcher.h" |
| 10 #include "chrome/browser/chromeos/syslogs/memorydetails_fetcher.h" |
| 11 #include "chrome/browser/chromeos/syslogs/lsbrelease_fetcher.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 SysLogsFetcherFactory* SysLogsFetcherFactory::GetInstance() { |
| 16 return Singleton<SysLogsFetcherFactory>::get(); |
| 17 } |
| 18 |
| 19 SysLogsFetcher* SysLogsFetcherFactory::CreateFetcher() { |
| 20 SysLogsDataSources data_sources; |
| 21 |
| 22 // Debug Daemon data source. |
| 23 data_sources.push_back(new DebugDaemonLogFetcher()); |
| 24 |
| 25 // Chrome data sources. |
| 26 data_sources.push_back(new CommandLineFetcher()); |
| 27 data_sources.push_back(new LSBReleaseFetcher()); |
| 28 data_sources.push_back(new MemoryDetailsFetcher()); |
| 29 return new SysLogsFetcher(data_sources); |
| 30 } |
| 31 |
| 32 } // namespace chromeos |
| OLD | NEW |