| Index: chrome/browser/ui/ash/app_sync_ui_state_factory.cc
|
| diff --git a/chrome/browser/ui/ash/app_sync_ui_state_factory.cc b/chrome/browser/ui/ash/app_sync_ui_state_factory.cc
|
| index 01ad27310d341655a63d2a33d905eee6109a2df0..edceaf055ac3609bd16ae19470c0c2da535c28be 100644
|
| --- a/chrome/browser/ui/ash/app_sync_ui_state_factory.cc
|
| +++ b/chrome/browser/ui/ash/app_sync_ui_state_factory.cc
|
| @@ -15,7 +15,7 @@ AppSyncUIState* AppSyncUIStateFactory::GetForProfile(Profile* profile) {
|
| return NULL;
|
|
|
| return static_cast<AppSyncUIState*>(
|
| - GetInstance()->GetServiceForProfile(profile, true));
|
| + GetInstance()->GetServiceForBrowserContext(profile, true));
|
| }
|
|
|
| // static
|
| @@ -24,15 +24,16 @@ AppSyncUIStateFactory* AppSyncUIStateFactory::GetInstance() {
|
| }
|
|
|
| AppSyncUIStateFactory::AppSyncUIStateFactory()
|
| - : ProfileKeyedServiceFactory("AppSyncUIState",
|
| - ProfileDependencyManager::GetInstance()) {
|
| + : BrowserContextKeyedServiceFactory(
|
| + "AppSyncUIState",
|
| + BrowserContextDependencyManager::GetInstance()) {
|
| DependsOn(ProfileSyncServiceFactory::GetInstance());
|
| }
|
|
|
| AppSyncUIStateFactory::~AppSyncUIStateFactory() {
|
| }
|
|
|
| -ProfileKeyedService* AppSyncUIStateFactory::BuildServiceInstanceFor(
|
| +BrowserContextKeyedService* AppSyncUIStateFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| Profile* profile = static_cast<Profile*>(context);
|
| DCHECK(AppSyncUIState::ShouldObserveAppSyncForProfile(profile));
|
|
|