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

Unified Diff: remoting/host/desktop_capturer_proxy.cc

Issue 1946553002: WebRTC's scoped_ptr and scoped_ptr.h are going away, so stop using them (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.h ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_capturer_proxy.cc
diff --git a/remoting/host/desktop_capturer_proxy.cc b/remoting/host/desktop_capturer_proxy.cc
index a9ffa9b651085f5d87a4df64e9b055fb70290a05..d00ca37d2c7a122c7fad03a5654e8ec6e62e0cf5 100644
--- a/remoting/host/desktop_capturer_proxy.cc
+++ b/remoting/host/desktop_capturer_proxy.cc
@@ -84,9 +84,7 @@ void DesktopCapturerProxy::Core::SetSharedMemoryFactory(
std::unique_ptr<webrtc::SharedMemoryFactory> shared_memory_factory) {
DCHECK(thread_checker_.CalledOnValidThread());
if (capturer_) {
- capturer_->SetSharedMemoryFactory(
- rtc::scoped_ptr<webrtc::SharedMemoryFactory>(
- shared_memory_factory.release()));
+ capturer_->SetSharedMemoryFactory(std::move(shared_memory_factory));
}
}
@@ -132,7 +130,7 @@ void DesktopCapturerProxy::Start(Callback* callback) {
}
void DesktopCapturerProxy::SetSharedMemoryFactory(
- rtc::scoped_ptr<webrtc::SharedMemoryFactory> shared_memory_factory) {
+ std::unique_ptr<webrtc::SharedMemoryFactory> shared_memory_factory) {
DCHECK(thread_checker_.CalledOnValidThread());
capture_task_runner_->PostTask(
« no previous file with comments | « remoting/host/desktop_capturer_proxy.h ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698