#include "chrome/browser/data_sharing/data_sharing_service_factory.h"
#include <memory>
#include "base/no_destructor.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/sync/data_type_store_service_factory.h"
#include "chrome/common/channel_info.h"
#include "components/data_sharing/internal/data_sharing_service_impl.h"
#include "components/data_sharing/internal/empty_data_sharing_service.h"
#include "components/data_sharing/public/data_sharing_sdk_delegate.h"
#include "components/data_sharing/public/data_sharing_service.h"
#include "components/data_sharing/public/data_sharing_ui_delegate.h"
#include "components/data_sharing/public/features.h"
#include "components/sync/model/data_type_store_service.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/data_sharing/android/data_sharing_ui_delegate_android.h"
#include "chrome/browser/data_sharing/data_sharing_service_factory_bridge.h"
#else
#include "chrome/browser/data_sharing/desktop/data_sharing_sdk_delegate_desktop.h"
#include "chrome/browser/data_sharing/desktop/data_sharing_ui_delegate_desktop.h"
#endif
namespace data_sharing {
DataSharingServiceFactory* DataSharingServiceFactory::GetInstance() { … }
DataSharingService* DataSharingServiceFactory::GetForProfile(Profile* profile) { … }
DataSharingServiceFactory::DataSharingServiceFactory()
: … { … }
DataSharingServiceFactory::~DataSharingServiceFactory() = default;
KeyedService* DataSharingServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const { … }
}