Chromium Code Reviews| 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(static_cast <SysLogsInterface*>( | |
|
rkc
2012/08/06 18:30:18
no static cast needed.
tudalex(Chromium)
2012/08/06 19:14:22
Done.
| |
| 24 new DebugDaemonLogFetcher())); | |
| 25 | |
| 26 // Chrome data source. | |
|
rkc
2012/08/06 18:30:18
nit: sources.
tudalex(Chromium)
2012/08/06 19:14:22
Done.
| |
| 27 data_sources.push_back(new CommandLineFetcher()); | |
| 28 data_sources.push_back(new LSBReleaseFetcher()); | |
| 29 data_sources.push_back(new MemoryDetailsFetcher()); | |
| 30 return new SysLogsFetcher(data_sources); | |
| 31 } | |
| 32 | |
| 33 } // namespace chromeos | |
| OLD | NEW |