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

Unified Diff: ash/test/test_shelf_delegate.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/test/test_session_state_delegate.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shelf_delegate.cc
diff --git a/ash/test/test_shelf_delegate.cc b/ash/test/test_shelf_delegate.cc
index affed052373d01ea049eb0041b70d0bf636b2cad..eda31b584223f8414a131f5d9858c4ecf8afb771 100644
--- a/ash/test/test_shelf_delegate.cc
+++ b/ash/test/test_shelf_delegate.cc
@@ -55,7 +55,8 @@ void TestShelfDelegate::AddShelfItem(aura::Window* window,
ShelfItemDelegateManager* manager =
Shell::GetInstance()->shelf_item_delegate_manager();
// |manager| owns TestShelfItemDelegate.
- scoped_ptr<ShelfItemDelegate> delegate(new TestShelfItemDelegate(window));
+ std::unique_ptr<ShelfItemDelegate> delegate(
+ new TestShelfItemDelegate(window));
manager->SetShelfItemDelegate(id, std::move(delegate));
SetShelfIDForWindow(id, window);
}
« no previous file with comments | « ash/test/test_session_state_delegate.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698