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

Unified Diff: ash/shell/window_watcher.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/shell.cc ('k') | ash/shell/window_watcher_shelf_item_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher.cc
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
index 23cf1d31968d05e90e54d8f65f939ec4d47a8a02..e70d9631d00c2dc9560ef65745bf0f28480b44f9 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -114,9 +114,8 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
model->Add(item);
- std::unique_ptr<ShelfItemDelegate> delegate(
- new WindowWatcherShelfItemDelegate(id, this));
- model->SetShelfItemDelegate(id, std::move(delegate));
+ model->SetShelfItemDelegate(
+ id, base::MakeUnique<WindowWatcherShelfItemDelegate>(id, this));
new_window->SetProperty(kShelfIDKey, id);
}
« no previous file with comments | « ash/shell.cc ('k') | ash/shell/window_watcher_shelf_item_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698