| 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 #include "content/public/browser/browser_thread.h" |
| 13 |
| 14 namespace chromeos { |
| 15 |
| 16 SysLogsFetcherFactory* SysLogsFetcherFactory::GetInstance() { |
| 17 return Singleton<SysLogsFetcherFactory>::get(); |
| 18 } |
| 19 |
| 20 SysLogsFetcher* SysLogsFetcherFactory::CreateFetcher() { |
| 21 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
| 22 SysLogsDataSources data_sources; |
| 23 |
| 24 // Debug Daemon data source. |
| 25 data_sources.push_back(new DebugDaemonLogFetcher()); |
| 26 |
| 27 // Chrome data sources. |
| 28 data_sources.push_back(new CommandLineFetcher()); |
| 29 data_sources.push_back(new LSBReleaseFetcher()); |
| 30 data_sources.push_back(new MemoryDetailsFetcher()); |
| 31 return new SysLogsFetcher(data_sources); |
| 32 } |
| 33 |
| 34 } // namespace chromeos |
| OLD | NEW |