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

Unified Diff: ui/views/button_drag_utils.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/bubble/tray_bubble_view.cc ('k') | ui/views/cocoa/bridged_native_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/button_drag_utils.cc
diff --git a/ui/views/button_drag_utils.cc b/ui/views/button_drag_utils.cc
index 60bd6e5abca8dca888391ffd2c8efd382376f9c7..70ecf3a3891827438d742de031ca2c9762122d28 100644
--- a/ui/views/button_drag_utils.cc
+++ b/ui/views/button_drag_utils.cc
@@ -81,7 +81,7 @@ void SetDragImage(const GURL& url,
press_point = gfx::Vector2d(prefsize.width() / 2, prefsize.height() / 2);
// Render the image.
- scoped_ptr<gfx::Canvas> canvas(
+ std::unique_ptr<gfx::Canvas> canvas(
views::GetCanvasForDragImage(widget, prefsize));
button.Paint(ui::CanvasPainter(canvas.get(), 1.f).context());
drag_utils::SetDragImageOnDataObject(*canvas, press_point, data);
« no previous file with comments | « ui/views/bubble/tray_bubble_view.cc ('k') | ui/views/cocoa/bridged_native_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698