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

Unified Diff: ash/common/shelf/shelf_model.cc

Issue 2718563008: mash: Use mojo for ShelfItemDelegate and [app] MenuItem. (Closed)
Patch Set: Address comments. Created 3 years, 9 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 | « ash/common/shelf/shelf_model.h ('k') | ash/common/shelf/shelf_model_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_model.cc
diff --git a/ash/common/shelf/shelf_model.cc b/ash/common/shelf/shelf_model.cc
index a68447588ef940cf69fbaea5d4fdcd7b25dacd86..88875b2f43da0abcd25b8b155e26ec651bc1c622 100644
--- a/ash/common/shelf/shelf_model.cc
+++ b/ash/common/shelf/shelf_model.cc
@@ -6,7 +6,6 @@
#include <algorithm>
-#include "ash/common/shelf/shelf_item_delegate.h"
#include "ash/common/shelf/shelf_model_observer.h"
namespace ash {
@@ -159,7 +158,7 @@ int ShelfModel::FirstPanelIndex() const {
void ShelfModel::SetShelfItemDelegate(
ShelfID id,
- std::unique_ptr<ShelfItemDelegate> item_delegate) {
+ std::unique_ptr<mojom::ShelfItemDelegate> item_delegate) {
// If another ShelfItemDelegate is already registered for |id|, we assume
// that this request is replacing ShelfItemDelegate for |id| with
// |item_delegate|.
@@ -171,7 +170,7 @@ void ShelfModel::SetShelfItemDelegate(
id_to_item_delegate_map_[id] = std::move(item_delegate);
}
-ShelfItemDelegate* ShelfModel::GetShelfItemDelegate(ShelfID id) {
+mojom::ShelfItemDelegate* ShelfModel::GetShelfItemDelegate(ShelfID id) {
if (id_to_item_delegate_map_.find(id) != id_to_item_delegate_map_.end())
return id_to_item_delegate_map_[id].get();
return nullptr;
« no previous file with comments | « ash/common/shelf/shelf_model.h ('k') | ash/common/shelf/shelf_model_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698