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

Unified Diff: ash/mus/shelf_delegate_mus.cc

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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/mus/keyboard_ui_mus.cc ('k') | ash/mus/shell_delegate_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/shelf_delegate_mus.cc
diff --git a/ash/mus/shelf_delegate_mus.cc b/ash/mus/shelf_delegate_mus.cc
index 7b3309114489fcfa61290c671ceff2d7729eb30a..d023996170881886f9167c4adfee52803dce19c8 100644
--- a/ash/mus/shelf_delegate_mus.cc
+++ b/ash/mus/shelf_delegate_mus.cc
@@ -4,6 +4,8 @@
#include "ash/mus/shelf_delegate_mus.h"
+#include <memory>
+
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_item_delegate.h"
#include "ash/shelf/shelf_item_delegate_manager.h"
@@ -186,7 +188,7 @@ void ShelfDelegateMus::OnUserWindowAdded(
ShelfItemDelegateManager* manager =
Shell::GetInstance()->shelf_item_delegate_manager();
- scoped_ptr<ShelfItemDelegate> delegate(new ShelfItemDelegateMus(
+ std::unique_ptr<ShelfItemDelegate> delegate(new ShelfItemDelegateMus(
user_window->window_id, user_window->window_title.To<base::string16>(),
user_window_controller_.get()));
manager->SetShelfItemDelegate(shelf_id, std::move(delegate));
« no previous file with comments | « ash/mus/keyboard_ui_mus.cc ('k') | ash/mus/shell_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698