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

Unified Diff: remoting/host/fake_mouse_cursor_monitor.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/fake_host_extension.cc ('k') | remoting/host/gcd_rest_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/fake_mouse_cursor_monitor.cc
diff --git a/remoting/host/fake_mouse_cursor_monitor.cc b/remoting/host/fake_mouse_cursor_monitor.cc
index 10facb5a7b78b321fa9c80386c2ff1b96bf5153b..5dbda7e1db840ac3e6cda58507c3586d3feb199d 100644
--- a/remoting/host/fake_mouse_cursor_monitor.cc
+++ b/remoting/host/fake_mouse_cursor_monitor.cc
@@ -4,8 +4,9 @@
#include "remoting/host/fake_mouse_cursor_monitor.h"
+#include <memory>
+
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
#include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h"
@@ -34,14 +35,13 @@ void FakeMouseCursorMonitor::Capture() {
const int kWidth = 32;
const int kHeight = 32;
- scoped_ptr<webrtc::DesktopFrame> desktop_frame(
+ std::unique_ptr<webrtc::DesktopFrame> desktop_frame(
new webrtc::BasicDesktopFrame(webrtc::DesktopSize(kWidth, kHeight)));
memset(desktop_frame->data(), 0xFF,
webrtc::DesktopFrame::kBytesPerPixel * kWidth * kHeight);
- scoped_ptr<webrtc::MouseCursor> mouse_cursor(
- new webrtc::MouseCursor(desktop_frame.release(),
- webrtc::DesktopVector()));
+ std::unique_ptr<webrtc::MouseCursor> mouse_cursor(new webrtc::MouseCursor(
+ desktop_frame.release(), webrtc::DesktopVector()));
callback_->OnMouseCursor(mouse_cursor.release());
}
« no previous file with comments | « remoting/host/fake_host_extension.cc ('k') | remoting/host/gcd_rest_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698