| Index: ash/mus/shelf_delegate_mus.cc
|
| diff --git a/ash/mus/shelf_delegate_mus.cc b/ash/mus/shelf_delegate_mus.cc
|
| index e701e369e44856ac1fd37d685ce2a01b0e1afc41..a6c3aa3b22a462ca374e48d97c6978861ec69662 100644
|
| --- a/ash/mus/shelf_delegate_mus.cc
|
| +++ b/ash/mus/shelf_delegate_mus.cc
|
| @@ -308,6 +308,18 @@ void ShelfDelegateMus::UnpinItem(const mojo::String& app_id) {
|
| model_->RemoveItemAt(model_->ItemIndexByID(shelf_id));
|
| }
|
|
|
| +void ShelfDelegateMus::SetItemImage(const mojo::String& app_id,
|
| + skia::mojom::BitmapPtr image) {
|
| + if (!app_id_to_shelf_id_.count(app_id.To<std::string>()))
|
| + return;
|
| + ShelfID shelf_id = app_id_to_shelf_id_[app_id.To<std::string>()];
|
| + int index = model_->ItemIndexByID(shelf_id);
|
| + DCHECK_GE(index, 0);
|
| + ShelfItem item = *model_->ItemByID(shelf_id);
|
| + item.image = GetShelfIconFromBitmap(image.To<SkBitmap>());
|
| + model_->Set(index, item);
|
| +}
|
| +
|
| void ShelfDelegateMus::OnUserWindowObserverAdded(
|
| mojo::Array<mash::wm::mojom::UserWindowPtr> user_windows) {
|
| for (size_t i = 0; i < user_windows.size(); ++i)
|
|
|