Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: chrome/browser/profiles/startup_task_runner_service_factory.cc

Issue 1165913004: Componentize StartupTaskRunnerService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 0a84d6931f00120d5521b11d7b165e2b5915fe14..0000000000000000000000000000000000000000
--- a/chrome/browser/profiles/startup_task_runner_service_factory.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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.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() {}
-
-// static
-StartupTaskRunnerService* StartupTaskRunnerServiceFactory::GetForProfile(
- Profile* profile) {
- return static_cast<StartupTaskRunnerService*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
-}
-
-// static
-StartupTaskRunnerServiceFactory*
- StartupTaskRunnerServiceFactory::GetInstance() {
- return Singleton<StartupTaskRunnerServiceFactory>::get();
-}
-
-KeyedService* StartupTaskRunnerServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new StartupTaskRunnerService(static_cast<Profile*>(profile));
-}

Powered by Google App Engine
This is Rietveld 408576698