This source file includes following definitions.
- GetForProfile
- GetInstance
- BuildServiceInstanceFor
#include "chrome/browser/profiles/startup_task_runner_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/startup_task_runner_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
StartupTaskRunnerServiceFactory::StartupTaskRunnerServiceFactory()
: BrowserContextKeyedServiceFactory(
"StartupTaskRunnerServiceFactory",
BrowserContextDependencyManager::GetInstance()) {
}
StartupTaskRunnerServiceFactory::~StartupTaskRunnerServiceFactory() {}
StartupTaskRunnerService* StartupTaskRunnerServiceFactory::GetForProfile(
Profile* profile) {
return static_cast<StartupTaskRunnerService*>(
GetInstance()->GetServiceForBrowserContext(profile, true));
}
StartupTaskRunnerServiceFactory*
StartupTaskRunnerServiceFactory::GetInstance() {
return Singleton<StartupTaskRunnerServiceFactory>::get();
}
KeyedService* StartupTaskRunnerServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new StartupTaskRunnerService(static_cast<Profile*>(profile));
}