Index: chrome/browser/ui/app_list/app_list_syncable_service_factory.cc |
diff --git a/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc b/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc |
index af15bcc4ed8d70e47680887b8655f25570f609bc..f0b07cdc55a793085383f174628656c96584c197 100644 |
--- a/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc |
+++ b/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc |
@@ -42,8 +42,10 @@ AppListSyncableServiceFactory* AppListSyncableServiceFactory::GetInstance() { |
std::unique_ptr<KeyedService> AppListSyncableServiceFactory::BuildInstanceFor( |
content::BrowserContext* browser_context) { |
Profile* profile = static_cast<Profile*>(browser_context); |
- if (chromeos::ProfileHelper::IsSigninProfile(profile)) |
- return NULL; |
+ if (chromeos::ProfileHelper::IsSigninProfile(profile) || |
+ chromeos::ProfileHelper::IsLockScreenAppProfile(profile)) { |
+ return nullptr; |
+ } |
VLOG(1) << "BuildInstanceFor: " << profile->GetDebugName() |
<< " (" << profile << ")"; |
return base::MakeUnique<AppListSyncableService>( |