#include "chrome/browser/policy/cloud/user_fm_registration_token_uploader_factory.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/invalidation/profile_invalidation_provider_factory.h"
#include "chrome/browser/policy/cloud/user_fm_registration_token_uploader.h"
#include "chrome/browser/profiles/profile.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/policy/core/user_cloud_policy_manager_ash.h"
#else
#include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
#endif
namespace policy {
namespace {
auto* GetCloudPolicyManager(Profile* profile) { … }
}
UserFmRegistrationTokenUploaderFactory*
UserFmRegistrationTokenUploaderFactory::GetInstance() { … }
UserFmRegistrationTokenUploaderFactory::UserFmRegistrationTokenUploaderFactory()
: … { … }
UserFmRegistrationTokenUploaderFactory::
~UserFmRegistrationTokenUploaderFactory() = default;
std::unique_ptr<KeyedService>
UserFmRegistrationTokenUploaderFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
bool UserFmRegistrationTokenUploaderFactory::
ServiceIsCreatedWithBrowserContext() const { … }
bool UserFmRegistrationTokenUploaderFactory::ServiceIsNULLWhileTesting() const { … }
}