#include "chrome/browser/search/background/ntp_background_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/profiles/profile.h"
#include "chrome/browser/search/background/ntp_background_service.h"
#include "components/search/ntp_features.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
NtpBackgroundService* NtpBackgroundServiceFactory::GetForProfile(
Profile* profile) { … }
NtpBackgroundServiceFactory* NtpBackgroundServiceFactory::GetInstance() { … }
NtpBackgroundServiceFactory::NtpBackgroundServiceFactory()
: … { … }
NtpBackgroundServiceFactory::~NtpBackgroundServiceFactory() = default;
std::unique_ptr<KeyedService>
NtpBackgroundServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }