Chromium Code Reviews| 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..86310c1f3f936daa06697906c95221e7bdc9434b 100644 |
| --- a/chrome/browser/ui/app_list/app_list_syncable_service.cc |
| +++ b/chrome/browser/ui/app_list/app_list_syncable_service.cc |
| @@ -11,6 +11,8 @@ |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/ui/app_list/app_list_prefs.h" |
| #include "chrome/browser/ui/app_list/app_list_service.h" |
| +#include "chrome/browser/ui/app_list/arc_app_item.h" |
| +#include "chrome/browser/ui/app_list/arc_app_model_builder.h" |
| #include "chrome/browser/ui/app_list/extension_app_item.h" |
| #include "chrome/browser/ui/app_list/extension_app_model_builder.h" |
| #include "chrome/browser/ui/app_list/model_pref_updater.h" |
| @@ -132,6 +134,8 @@ bool GetAppListItemType(AppListItem* item, |
| const char* item_type = item->GetItemType(); |
| if (item_type == ExtensionAppItem::kItemType) { |
| *type = sync_pb::AppListSpecifics::TYPE_APP; |
| + } else if (item_type == ArcAppItem::kItemType) { |
| + *type = sync_pb::AppListSpecifics::TYPE_APP; |
|
elijahtaylor1
2015/10/28 06:32:38
nit: alignment
khmel1
2015/10/29 08:12:18
Done.
|
| } else if (item_type == AppListFolderItem::kItemType) { |
| *type = sync_pb::AppListSpecifics::TYPE_FOLDER; |
| } else { |
| @@ -265,14 +269,17 @@ void AppListSyncableService::BuildModel() { |
| if (service) |
| controller = service->GetControllerDelegate(); |
| apps_builder_.reset(new ExtensionAppModelBuilder(controller)); |
| + arc_apps_builder_.reset(new ArcAppModelBuilder(controller)); |
| DCHECK(profile_); |
| if (app_list::switches::IsAppListSyncEnabled()) { |
| VLOG(1) << this << ": AppListSyncableService: InitializeWithService."; |
| SyncStarted(); |
| apps_builder_->InitializeWithService(this, model_.get()); |
| + arc_apps_builder_->InitializeWithService(this, model_.get()); |
| } else { |
| VLOG(1) << this << ": AppListSyncableService: InitializeWithProfile."; |
| apps_builder_->InitializeWithProfile(profile_, model_.get()); |
| + arc_apps_builder_->InitializeWithProfile(profile_, model_.get()); |
| } |
| model_pref_updater_.reset( |