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

Unified Diff: ash/shelf/shelf_window_watcher.cc

Issue 2908793002: [mus+ash] Removes WmWindow from ash/wm/overview and ash/wm/workspace (Closed)
Patch Set: 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
« no previous file with comments | « ash/shelf/shelf_tooltip_manager.cc ('k') | ash/shelf/shelf_window_watcher_item_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_window_watcher.cc
diff --git a/ash/shelf/shelf_window_watcher.cc b/ash/shelf/shelf_window_watcher.cc
index ec2fde2b18e5c93629c57333b11ff6590edc1f68..c1112f4f1f1c13f3725c8666d66a05a10d2d8e03 100644
--- a/ash/shelf/shelf_window_watcher.cc
+++ b/ash/shelf/shelf_window_watcher.cc
@@ -197,9 +197,9 @@ void ShelfWindowWatcher::AddShelfItem(aura::Window* window) {
item.id.launch_id = base::IntToString(id++);
}
- model_->SetShelfItemDelegate(item.id,
- base::MakeUnique<ShelfWindowWatcherItemDelegate>(
- item.id, WmWindow::Get(window)));
+ model_->SetShelfItemDelegate(
+ item.id,
+ base::MakeUnique<ShelfWindowWatcherItemDelegate>(item.id, window));
// Panels are inserted on the left so as not to push all existing panels over.
model_->AddAt(item.type == TYPE_APP_PANEL ? 0 : model_->item_count(), item);
}
« no previous file with comments | « ash/shelf/shelf_tooltip_manager.cc ('k') | ash/shelf/shelf_window_watcher_item_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698