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

Unified Diff: remoting/host/desktop_session_agent.cc

Issue 1921553002: Stop using rtc_make_scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/desktop_capturer_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_agent.cc
diff --git a/remoting/host/desktop_session_agent.cc b/remoting/host/desktop_session_agent.cc
index 26ee9e1a9d98754daffb3b9e334cd0edbce43c02..84012a3767391294fd8b121c26c8ff031e0c36f2 100644
--- a/remoting/host/desktop_session_agent.cc
+++ b/remoting/host/desktop_session_agent.cc
@@ -142,7 +142,7 @@ class SharedMemoryFactoryImpl : public webrtc::SharedMemoryFactory {
buffer->size())));
}
- return rtc_make_scoped_ptr(buffer.release());
+ return rtc::scoped_ptr<webrtc::SharedMemory>(buffer.release());
tommi 2016/04/25 10:24:22 looks like CreateSharedMemory is only being called
kwiberg-chromium 2016/04/25 10:41:59 We could, but changing the return value of an inte
tommi 2016/04/25 12:30:26 ok, sgtm
}
private:
@@ -310,7 +310,7 @@ void DesktopSessionAgent::OnStartSessionAgent(
video_capturer_ = desktop_environment_->CreateVideoCapturer();
video_capturer_->Start(this);
video_capturer_->SetSharedMemoryFactory(
- rtc_make_scoped_ptr(new SharedMemoryFactoryImpl(
+ rtc::scoped_ptr<webrtc::SharedMemoryFactory>(new SharedMemoryFactoryImpl(
base::Bind(&DesktopSessionAgent::SendToNetwork, this))));
mouse_cursor_monitor_ = desktop_environment_->CreateMouseCursorMonitor();
mouse_cursor_monitor_->Init(this, webrtc::MouseCursorMonitor::SHAPE_ONLY);
« no previous file with comments | « remoting/host/desktop_capturer_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698