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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 809903005: ui/views: Cleanup usage of scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need of Pass() Created 5 years, 11 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
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index 1e8d67d5723fc321779768b5de39ac623ec11209..b54a643e88fa4653aecec5804996a0916739f119 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -172,14 +172,14 @@ void DesktopWindowTreeHostWin::OnNativeWidgetCreated(
scoped_ptr<corewm::Tooltip> DesktopWindowTreeHostWin::CreateTooltip() {
DCHECK(!tooltip_);
tooltip_ = new corewm::TooltipWin(GetAcceleratedWidget());
- return scoped_ptr<corewm::Tooltip>(tooltip_);
+ return make_scoped_ptr(tooltip_);
}
scoped_ptr<aura::client::DragDropClient>
DesktopWindowTreeHostWin::CreateDragDropClient(
DesktopNativeCursorManager* cursor_manager) {
drag_drop_client_ = new DesktopDragDropClientWin(window(), GetHWND());
- return scoped_ptr<aura::client::DragDropClient>(drag_drop_client_).Pass();
+ return make_scoped_ptr(drag_drop_client_);
}
void DesktopWindowTreeHostWin::Close() {

Powered by Google App Engine
This is Rietveld 408576698