| Index: chrome/browser/ui/app_list/app_list_syncable_service.cc
|
| diff --git a/chrome/browser/ui/app_list/app_list_syncable_service.cc b/chrome/browser/ui/app_list/app_list_syncable_service.cc
|
| index 7ab733bf9cf1cedee37148ac3bdb5fea5f055249..47024d5267ff6eb8f354b8a485586e51177e2071 100644
|
| --- a/chrome/browser/ui/app_list/app_list_syncable_service.cc
|
| +++ b/chrome/browser/ui/app_list/app_list_syncable_service.cc
|
| @@ -38,6 +38,11 @@
|
| #include "chrome/browser/chromeos/genius_app/app_id.h"
|
| #endif
|
|
|
| +#if defined(ENABLE_ARC)
|
| +#include "chrome/browser/ui/app_list/arc_app_item.h"
|
| +#include "chrome/browser/ui/app_list/arc_app_model_builder.h"
|
| +#endif
|
| +
|
| using syncer::SyncChange;
|
|
|
| namespace app_list {
|
| @@ -132,6 +137,10 @@ bool GetAppListItemType(AppListItem* item,
|
| const char* item_type = item->GetItemType();
|
| if (item_type == ExtensionAppItem::kItemType) {
|
| *type = sync_pb::AppListSpecifics::TYPE_APP;
|
| +#if defined(ENABLE_ARC)
|
| + } else if (item_type == ArcAppItem::kItemType) {
|
| + *type = sync_pb::AppListSpecifics::TYPE_APP;
|
| +#endif
|
| } else if (item_type == AppListFolderItem::kItemType) {
|
| *type = sync_pb::AppListSpecifics::TYPE_FOLDER;
|
| } else {
|
| @@ -265,14 +274,23 @@ void AppListSyncableService::BuildModel() {
|
| if (service)
|
| controller = service->GetControllerDelegate();
|
| apps_builder_.reset(new ExtensionAppModelBuilder(controller));
|
| +#if defined(ENABLE_ARC)
|
| + arc_apps_builder_.reset(new ArcAppModelBuilder(controller));
|
| +#endif
|
| DCHECK(profile_);
|
| if (app_list::switches::IsAppListSyncEnabled()) {
|
| VLOG(1) << this << ": AppListSyncableService: InitializeWithService.";
|
| SyncStarted();
|
| apps_builder_->InitializeWithService(this, model_.get());
|
| +#if defined(ENABLE_ARC)
|
| + arc_apps_builder_->InitializeWithService(this, model_.get());
|
| +#endif
|
| } else {
|
| VLOG(1) << this << ": AppListSyncableService: InitializeWithProfile.";
|
| apps_builder_->InitializeWithProfile(profile_, model_.get());
|
| +#if defined(ENABLE_ARC)
|
| + arc_apps_builder_->InitializeWithProfile(profile_, model_.get());
|
| +#endif
|
| }
|
|
|
| model_pref_updater_.reset(
|
|
|