Index: chrome/browser/profiles/startup_task_runner_service_factory.cc |
diff --git a/chrome/browser/profiles/startup_task_runner_service_factory.cc b/chrome/browser/profiles/startup_task_runner_service_factory.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..eaff6a865c35365628ee30e0f8e3a44c8035a2c0 |
--- /dev/null |
+++ b/chrome/browser/profiles/startup_task_runner_service_factory.cc |
@@ -0,0 +1,33 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/profiles/startup_task_runner_service_factory.h" |
+ |
+#include "chrome/browser/profiles/profile_dependency_manager.h" |
+#include "chrome/browser/profiles/startup_task_runner_service.h" |
+ |
+StartupTaskRunnerServiceFactory::StartupTaskRunnerServiceFactory() |
+ : ProfileKeyedServiceFactory("StartupTaskRunnerServiceFactory", |
+ ProfileDependencyManager::GetInstance()) { |
+} |
+ |
+StartupTaskRunnerServiceFactory::~StartupTaskRunnerServiceFactory() {} |
+ |
+// static |
+StartupTaskRunnerService* StartupTaskRunnerServiceFactory::GetForProfile( |
+ Profile* profile) { |
+ return static_cast<StartupTaskRunnerService*>( |
+ GetInstance()->GetServiceForProfile(profile, true)); |
+} |
+ |
+// static |
+StartupTaskRunnerServiceFactory* |
+ StartupTaskRunnerServiceFactory::GetInstance() { |
+ return Singleton<StartupTaskRunnerServiceFactory>::get(); |
+} |
+ |
+ProfileKeyedService* StartupTaskRunnerServiceFactory::BuildServiceInstanceFor( |
+ Profile* profile) const { |
+ return new StartupTaskRunnerService(profile); |
+} |