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

Unified Diff: ash/public/cpp/shelf_item_delegate.cc

Issue 2833173002: mash: Support ShelfModel access in Chrome. (Closed)
Patch Set: Address comments; fix test failures. Created 3 years, 7 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
Index: ash/public/cpp/shelf_item_delegate.cc
diff --git a/ash/public/cpp/shelf_item_delegate.cc b/ash/public/cpp/shelf_item_delegate.cc
index c1fdab9f006a451c0e824c95ada958fc391d6801..471d5f387a0cf23410c23b4617f3b84ca5a0db47 100644
--- a/ash/public/cpp/shelf_item_delegate.cc
+++ b/ash/public/cpp/shelf_item_delegate.cc
@@ -7,10 +7,14 @@
namespace ash {
ShelfItemDelegate::ShelfItemDelegate(const ash::ShelfID& shelf_id)
- : shelf_id_(shelf_id), image_set_by_controller_(false) {}
+ : shelf_id_(shelf_id), binding_(this), image_set_by_controller_(false) {}
ShelfItemDelegate::~ShelfItemDelegate() {}
+mojom::ShelfItemDelegatePtr ShelfItemDelegate::CreateInterfacePtrAndBind() {
+ return binding_.CreateInterfacePtrAndBind();
+}
+
MenuItemList ShelfItemDelegate::GetAppMenuItems(int event_flags) {
return MenuItemList();
}

Powered by Google App Engine
This is Rietveld 408576698