#include "chrome/browser/new_tab_page/promos/promo_service_factory.h"
#include <optional>
#include <string>
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/new_tab_page/promos/promo_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/account_consistency_mode_manager.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
PromoService* PromoServiceFactory::GetForProfile(Profile* profile) { … }
PromoServiceFactory* PromoServiceFactory::GetInstance() { … }
PromoServiceFactory::PromoServiceFactory()
: … { … }
PromoServiceFactory::~PromoServiceFactory() = default;
std::unique_ptr<KeyedService>
PromoServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }