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

Unified Diff: remoting/protocol/fake_connection_to_client.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/protocol/fake_connection_to_client.h ('k') | remoting/protocol/fake_connection_to_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_connection_to_client.cc
diff --git a/remoting/protocol/fake_connection_to_client.cc b/remoting/protocol/fake_connection_to_client.cc
index 113ecb266e7f3219e585813fed296ebe5a101e46..8d115f5a38255e8fa32987b77eb747464fe04861 100644
--- a/remoting/protocol/fake_connection_to_client.cc
+++ b/remoting/protocol/fake_connection_to_client.cc
@@ -31,7 +31,7 @@ base::WeakPtr<FakeVideoStream> FakeVideoStream::GetWeakPtr() {
return weak_factory_.GetWeakPtr();
}
-FakeConnectionToClient::FakeConnectionToClient(scoped_ptr<Session> session)
+FakeConnectionToClient::FakeConnectionToClient(std::unique_ptr<Session> session)
: session_(std::move(session)) {}
FakeConnectionToClient::~FakeConnectionToClient() {}
@@ -40,9 +40,9 @@ void FakeConnectionToClient::SetEventHandler(EventHandler* event_handler) {
event_handler_ = event_handler;
}
-scoped_ptr<VideoStream> FakeConnectionToClient::StartVideoStream(
- scoped_ptr<webrtc::DesktopCapturer> desktop_capturer) {
- scoped_ptr<FakeVideoStream> result(new FakeVideoStream());
+std::unique_ptr<VideoStream> FakeConnectionToClient::StartVideoStream(
+ std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer) {
+ std::unique_ptr<FakeVideoStream> result(new FakeVideoStream());
last_video_stream_ = result->GetWeakPtr();
return std::move(result);
}
« no previous file with comments | « remoting/protocol/fake_connection_to_client.h ('k') | remoting/protocol/fake_connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698