| 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()) {
|
|
|