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

Unified Diff: remoting/protocol/fake_connection_to_client.h

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_authenticator.cc ('k') | remoting/protocol/fake_connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_connection_to_client.h
diff --git a/remoting/protocol/fake_connection_to_client.h b/remoting/protocol/fake_connection_to_client.h
index bce93aa0fc9ba31be360977f4a432526c5e43661..3b791473a9f73576fb2f7df3b9856cd770d18add 100644
--- a/remoting/protocol/fake_connection_to_client.h
+++ b/remoting/protocol/fake_connection_to_client.h
@@ -42,13 +42,13 @@ class FakeVideoStream : public protocol::VideoStream {
class FakeConnectionToClient : public ConnectionToClient {
public:
- FakeConnectionToClient(scoped_ptr<Session> session);
+ FakeConnectionToClient(std::unique_ptr<Session> session);
~FakeConnectionToClient() override;
void SetEventHandler(EventHandler* event_handler) override;
- scoped_ptr<VideoStream> StartVideoStream(
- scoped_ptr<webrtc::DesktopCapturer> desktop_capturer) override;
+ std::unique_ptr<VideoStream> StartVideoStream(
+ std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer) override;
AudioStub* audio_stub() override;
ClientStub* client_stub() override;
@@ -77,7 +77,7 @@ class FakeConnectionToClient : public ConnectionToClient {
ErrorCode disconnect_error() { return disconnect_error_; }
private:
- scoped_ptr<Session> session_;
+ std::unique_ptr<Session> session_;
EventHandler* event_handler_ = nullptr;
base::WeakPtr<FakeVideoStream> last_video_stream_;
« no previous file with comments | « remoting/protocol/fake_authenticator.cc ('k') | remoting/protocol/fake_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698