Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1397)

Unified Diff: chrome/browser/ui/app_list/extension_app_model_builder.cc

Issue 118463002: Sync removal of Default apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/app_list/app_list_syncable_service_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/extension_app_model_builder.cc
diff --git a/chrome/browser/ui/app_list/extension_app_model_builder.cc b/chrome/browser/ui/app_list/extension_app_model_builder.cc
index a8cbdf7c46461af59419633010884e20c3891b89..818c03c28cdce91a967af4a9145e815acdd74b87 100644
--- a/chrome/browser/ui/app_list/extension_app_model_builder.cc
+++ b/chrome/browser/ui/app_list/extension_app_model_builder.cc
@@ -220,7 +220,7 @@ void ExtensionAppModelBuilder::PopulateApps() {
void ExtensionAppModelBuilder::InsertApp(ExtensionAppItem* app) {
if (service_) {
- service_->AddExtensionAppItem(app);
+ service_->AddItem(app);
return;
}
model_->item_list()->AddItem(app);
@@ -271,9 +271,8 @@ void ExtensionAppModelBuilder::OnListItemMoved(size_t from_index,
if (item->GetAppType() != ExtensionAppItem::kAppType)
return;
- ExtensionAppItem* extension_item = static_cast<ExtensionAppItem*>(item);
if (service_) {
- service_->UpdateExtensionAppItem(extension_item);
+ service_->UpdateItem(item);
return;
}
@@ -295,5 +294,5 @@ void ExtensionAppModelBuilder::OnListItemMoved(size_t from_index,
}
// item->Move will call set_position, overriding the item's position.
if (prev || next)
- extension_item->Move(prev, next);
+ static_cast<ExtensionAppItem*>(item)->Move(prev, next);
}
« no previous file with comments | « chrome/browser/ui/app_list/app_list_syncable_service_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698