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

Unified Diff: ui/views/focus/focus_manager_unittest.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 | « ui/views/focus/focus_manager.h ('k') | ui/views/layout/box_layout_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/focus_manager_unittest.cc
diff --git a/ui/views/focus/focus_manager_unittest.cc b/ui/views/focus/focus_manager_unittest.cc
index 1c4f3502dbd86a0a6bb2d45f182536ffa3e68a30..96eb42fcf32bf8a5bbc4286bc0a602319ef2d4cc 100644
--- a/ui/views/focus/focus_manager_unittest.cc
+++ b/ui/views/focus/focus_manager_unittest.cc
@@ -135,11 +135,11 @@ TEST_F(FocusManagerTest, WidgetFocusChangeListener) {
params.bounds = gfx::Rect(10, 10, 100, 100);
params.parent = GetWidget()->GetNativeView();
- scoped_ptr<Widget> widget1(new Widget);
+ std::unique_ptr<Widget> widget1(new Widget);
widget1->Init(params);
widget1->Show();
- scoped_ptr<Widget> widget2(new Widget);
+ std::unique_ptr<Widget> widget2(new Widget);
widget2->Init(params);
widget2->Show();
@@ -839,7 +839,7 @@ TEST_F(FocusManagerTest, AdvanceFocusStaysInWidget) {
GetContentsView()->AddChildView(widget_view);
// Create a widget with two views, focus the second.
- scoped_ptr<AdvanceFocusWidgetDelegate> delegate;
+ std::unique_ptr<AdvanceFocusWidgetDelegate> delegate;
Widget::InitParams params = CreateParams(Widget::InitParams::TYPE_WINDOW);
params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
params.child = true;
« no previous file with comments | « ui/views/focus/focus_manager.h ('k') | ui/views/layout/box_layout_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698