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

Unified Diff: remoting/host/mouse_shape_pump.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
« no previous file with comments | « remoting/host/mouse_shape_pump.h ('k') | remoting/host/mouse_shape_pump_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/mouse_shape_pump.cc
diff --git a/remoting/host/mouse_shape_pump.cc b/remoting/host/mouse_shape_pump.cc
index e086ef4882cf9758bf16f510da7a1c8e3b9bdb5a..f86a30a853a26872a4709e2f9ad8451f8e6252a4 100644
--- a/remoting/host/mouse_shape_pump.cc
+++ b/remoting/host/mouse_shape_pump.cc
@@ -21,7 +21,7 @@ namespace remoting {
static const int kCursorCaptureIntervalMs = 100;
MouseShapePump::MouseShapePump(
- scoped_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor,
+ std::unique_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor,
protocol::CursorShapeStub* cursor_shape_stub)
: mouse_cursor_monitor_(std::move(mouse_cursor_monitor)),
cursor_shape_stub_(cursor_shape_stub),
@@ -43,9 +43,9 @@ void MouseShapePump::Capture() {
void MouseShapePump::OnMouseCursor(webrtc::MouseCursor* cursor) {
DCHECK(thread_checker_.CalledOnValidThread());
- scoped_ptr<webrtc::MouseCursor> owned_cursor(cursor);
+ std::unique_ptr<webrtc::MouseCursor> owned_cursor(cursor);
- scoped_ptr<protocol::CursorShapeInfo> cursor_proto(
+ std::unique_ptr<protocol::CursorShapeInfo> cursor_proto(
new protocol::CursorShapeInfo());
cursor_proto->set_width(cursor->image()->size().width());
cursor_proto->set_height(cursor->image()->size().height());
« no previous file with comments | « remoting/host/mouse_shape_pump.h ('k') | remoting/host/mouse_shape_pump_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698