#include "chrome/browser/ui/app_list/app_list_util.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/public/cpp/app_list/app_list_types.h"
#endif
bool IsAppLauncherEnabled() { … }
namespace app_list {
#if BUILDFLAG(IS_CHROMEOS_ASH)
std::unique_ptr<ash::AppListItemMetadata> GenerateItemMetadataFromSyncItem(
const app_list::AppListSyncableService::SyncItem& sync_item) {
DCHECK(sync_item.item_type != sync_pb::AppListSpecifics::TYPE_PAGE_BREAK);
auto item_meta_data = std::make_unique<ash::AppListItemMetadata>();
item_meta_data->id = sync_item.item_id;
item_meta_data->position = sync_item.item_ordinal;
item_meta_data->is_folder =
(sync_item.item_type == sync_pb::AppListSpecifics::TYPE_FOLDER);
item_meta_data->name = sync_item.item_name;
item_meta_data->folder_id = sync_item.parent_id;
item_meta_data->icon_color = sync_item.item_color;
return item_meta_data;
}
#endif
}