| 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 c57d1cd8a3d2c802bf3961c257972b8f822fc6ab..a7cbfb15a355d2b28f21110083420a2938278b0a 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;
|
|
|