Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Side by Side Diff: chrome/browser/chromeos/syslogs/syslogs_fetcher_factory.cc

Issue 10827130: Refactoring the SysInfoProvider. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698