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

Unified Diff: remoting/host/chromeos/mouse_cursor_monitor_aura.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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
Index: remoting/host/chromeos/mouse_cursor_monitor_aura.cc
diff --git a/remoting/host/chromeos/mouse_cursor_monitor_aura.cc b/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
index ed7a0e0b38887a30e791906377d5b96427b15961..9749ac7b40529f77181ad54cf6c5139c72a4d750 100644
--- a/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
+++ b/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
@@ -66,7 +66,7 @@ void MouseCursorMonitorAura::Capture() {
}
void MouseCursorMonitorAura::NotifyCursorChanged(const ui::Cursor& cursor) {
- scoped_ptr<SkBitmap> cursor_bitmap(new SkBitmap());
+ std::unique_ptr<SkBitmap> cursor_bitmap(new SkBitmap());
gfx::Point cursor_hotspot;
if (cursor.native_type() == ui::kCursorNone) {
@@ -96,9 +96,9 @@ void MouseCursorMonitorAura::NotifyCursorChanged(const ui::Cursor& cursor) {
cursor_hotspot.SetPoint(0, 0);
}
- scoped_ptr<webrtc::DesktopFrame> image(
+ std::unique_ptr<webrtc::DesktopFrame> image(
SkiaBitmapDesktopFrame::Create(std::move(cursor_bitmap)));
- scoped_ptr<webrtc::MouseCursor> cursor_shape(new webrtc::MouseCursor(
+ std::unique_ptr<webrtc::MouseCursor> cursor_shape(new webrtc::MouseCursor(
image.release(),
webrtc::DesktopVector(cursor_hotspot.x(), cursor_hotspot.y())));
« no previous file with comments | « remoting/host/chromeos/clipboard_aura_unittest.cc ('k') | remoting/host/chromeos/skia_bitmap_desktop_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698