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

Unified Diff: chrome/browser/sync/profile_sync_service_factory.cc

Issue 10910071: Extract abstract base to API directory for ProfileSyncService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR Created 8 years, 3 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/sync/profile_sync_service_factory.cc
diff --git a/chrome/browser/sync/profile_sync_service_factory.cc b/chrome/browser/sync/profile_sync_service_factory.cc
index 5bddce8bd00c097d0b4c858f892ae4a02bc397d8..636cf06ae44caf5c797e1b4a5017751b41a1a0a5 100644
--- a/chrome/browser/sync/profile_sync_service_factory.cc
+++ b/chrome/browser/sync/profile_sync_service_factory.cc
@@ -41,6 +41,13 @@ ProfileSyncService* ProfileSyncServiceFactory::GetForProfile(
GetInstance()->GetServiceForProfile(profile, true));
}
+// static
+ProfileSyncServiceBase* ProfileSyncServiceBase::ForContext(
+ content::BrowserContext* context) {
+ return ProfileSyncServiceFactory::GetForProfile(
+ static_cast<Profile*>(context));
+}
+
ProfileSyncServiceFactory::ProfileSyncServiceFactory()
: ProfileKeyedServiceFactory("ProfileSyncService",
ProfileDependencyManager::GetInstance()) {

Powered by Google App Engine
This is Rietveld 408576698