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

Unified Diff: chrome/browser/bookmarks/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, 7 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/bookmarks/startup_task_runner_service_factory.cc
diff --git a/chrome/browser/profiles/startup_task_runner_service_factory.cc b/chrome/browser/bookmarks/startup_task_runner_service_factory.cc
similarity index 76%
rename from chrome/browser/profiles/startup_task_runner_service_factory.cc
rename to chrome/browser/bookmarks/startup_task_runner_service_factory.cc
index 0a84d6931f00120d5521b11d7b165e2b5915fe14..2cf86ed9268411d8f68977ac268d834bd8c51954 100644
--- a/chrome/browser/profiles/startup_task_runner_service_factory.cc
+++ b/chrome/browser/bookmarks/startup_task_runner_service_factory.cc
@@ -2,10 +2,10 @@
// 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/bookmarks/startup_task_runner_service_factory.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/startup_task_runner_service.h"
+#include "components/bookmarks/browser/startup_task_runner_service.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
StartupTaskRunnerServiceFactory::StartupTaskRunnerServiceFactory()
@@ -30,6 +30,7 @@ StartupTaskRunnerServiceFactory*
}
KeyedService* StartupTaskRunnerServiceFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new StartupTaskRunnerService(static_cast<Profile*>(profile));
+ content::BrowserContext* context) const {
+ Profile* profile = Profile::FromBrowserContext(context);
+ return new StartupTaskRunnerService(profile->GetIOTaskRunner());
}

Powered by Google App Engine
This is Rietveld 408576698