#include "chrome/browser/enterprise/signals/signals_aggregator_factory.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "chrome/browser/enterprise/signals/system_signals_service_host_factory.h"
#include "chrome/browser/enterprise/signals/user_permission_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "components/device_signals/core/browser/file_system_signals_collector.h"
#include "components/device_signals/core/browser/settings_signals_collector.h"
#include "components/device_signals/core/browser/signals_aggregator.h"
#include "components/device_signals/core/browser/signals_aggregator_impl.h"
#include "components/device_signals/core/browser/signals_collector.h"
#include "components/device_signals/core/browser/system_signals_service_host.h"
#include "components/device_signals/core/browser/user_permission_service.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/browser/browser_context.h"
#if BUILDFLAG(IS_MAC)
#include "components/device_signals/core/browser/mac/plist_settings_client.h"
#endif
#if BUILDFLAG(IS_WIN)
#include "components/device_signals/core/browser/win/registry_settings_client.h"
#include "components/device_signals/core/browser/win/win_signals_collector.h"
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
#include "components/device_signals/core/browser/agent_signals_collector.h"
#include "components/device_signals/core/browser/crowdstrike_client.h"
#include "components/device_signals/core/browser/settings_client.h"
#endif
namespace enterprise_signals {
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
std::unique_ptr<device_signals::SettingsClient> CreateSettingsClient() {
#if BUILDFLAG(IS_WIN)
return std::make_unique<device_signals::RegistrySettingsClient>();
#else
return std::make_unique<device_signals::PlistSettingsClient>();
#endif
}
#endif
SignalsAggregatorFactory* SignalsAggregatorFactory::GetInstance() { … }
device_signals::SignalsAggregator* SignalsAggregatorFactory::GetForProfile(
Profile* profile) { … }
SignalsAggregatorFactory::SignalsAggregatorFactory()
: … { … }
SignalsAggregatorFactory::~SignalsAggregatorFactory() = default;
KeyedService* SignalsAggregatorFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const { … }
}