| Index: chrome/browser/ui/ash/chrome_launcher_prefs.cc
|
| diff --git a/chrome/browser/ui/ash/chrome_launcher_prefs.cc b/chrome/browser/ui/ash/chrome_launcher_prefs.cc
|
| index 05dd8703519502120b00067ece466a6c3e931127..4a0dadd68712d71ae366cd42afe11da85396ea58 100644
|
| --- a/chrome/browser/ui/ash/chrome_launcher_prefs.cc
|
| +++ b/chrome/browser/ui/ash/chrome_launcher_prefs.cc
|
| @@ -598,8 +598,8 @@ std::vector<AppLauncherId> GetPinnedAppsFromPrefs(
|
| LauncherControllerHelper* helper) {
|
| app_list::AppListSyncableService* app_service =
|
| app_list::AppListSyncableServiceFactory::GetForProfile(helper->profile());
|
| - // Some unit tests may not have it.
|
| - if (!app_service)
|
| + // Some unit tests may not have it or service may not be initialized.
|
| + if (!app_service || !app_service->IsInitialized())
|
| return std::vector<AppLauncherId>();
|
|
|
| std::vector<PinInfo> pin_infos;
|
|
|