#include "chrome/browser/user_annotations/user_annotations_service_factory.h"
#include "chrome/browser/app_mode/app_mode_utils.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_attributes_entry.h"
#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "components/user_annotations/user_annotations_features.h"
#include "components/user_annotations/user_annotations_service.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/profiles/profile_helper.h"
#endif
namespace {
bool IsEphemeralProfile(Profile* profile) { … }
}
user_annotations::UserAnnotationsService*
UserAnnotationsServiceFactory::GetForProfile(Profile* profile) { … }
UserAnnotationsServiceFactory* UserAnnotationsServiceFactory::GetInstance() { … }
UserAnnotationsServiceFactory::UserAnnotationsServiceFactory()
: … { … }
UserAnnotationsServiceFactory::~UserAnnotationsServiceFactory() = default;
std::unique_ptr<KeyedService>
UserAnnotationsServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }