summaryrefslogtreecommitdiffstats
path: root/remoting/host/host_mock_objects.cc
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2014-09-30 19:36:43 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-01 02:37:06 +0000
commit2d69088aaa9c1ce161c0faee988c54a7dfc797cc (patch)
tree26b10313dd8667c64d77e7d275f76b2bebf7d88c /remoting/host/host_mock_objects.cc
parent6561311f4cb8275fc8dd85592840bb4a8e6ee6d3 (diff)
downloadchromium_src-2d69088aaa9c1ce161c0faee988c54a7dfc797cc.zip
chromium_src-2d69088aaa9c1ce161c0faee988c54a7dfc797cc.tar.gz
chromium_src-2d69088aaa9c1ce161c0faee988c54a7dfc797cc.tar.bz2
Use make_scoped_ptr() in src/remoting.
Also minor code cleanup in daemon_installer_win.cc . Review URL: https://codereview.chromium.org/608343002 Cr-Commit-Position: refs/heads/master@{#297583}
Diffstat (limited to 'remoting/host/host_mock_objects.cc')
-rw-r--r--remoting/host/host_mock_objects.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/remoting/host/host_mock_objects.cc b/remoting/host/host_mock_objects.cc
index 775314c..c48517f 100644
--- a/remoting/host/host_mock_objects.cc
+++ b/remoting/host/host_mock_objects.cc
@@ -23,31 +23,31 @@ MockDesktopEnvironment::MockDesktopEnvironment() {}
MockDesktopEnvironment::~MockDesktopEnvironment() {}
scoped_ptr<AudioCapturer> MockDesktopEnvironment::CreateAudioCapturer() {
- return scoped_ptr<AudioCapturer>(CreateAudioCapturerPtr());
+ return make_scoped_ptr(CreateAudioCapturerPtr());
}
scoped_ptr<InputInjector> MockDesktopEnvironment::CreateInputInjector() {
- return scoped_ptr<InputInjector>(CreateInputInjectorPtr());
+ return make_scoped_ptr(CreateInputInjectorPtr());
}
scoped_ptr<ScreenControls> MockDesktopEnvironment::CreateScreenControls() {
- return scoped_ptr<ScreenControls>(CreateScreenControlsPtr());
+ return make_scoped_ptr(CreateScreenControlsPtr());
}
scoped_ptr<webrtc::DesktopCapturer>
MockDesktopEnvironment::CreateVideoCapturer() {
- return scoped_ptr<webrtc::DesktopCapturer>(CreateVideoCapturerPtr());
+ return make_scoped_ptr(CreateVideoCapturerPtr());
}
scoped_ptr<GnubbyAuthHandler>
MockDesktopEnvironment::CreateGnubbyAuthHandler(
protocol::ClientStub* client_stub) {
- return scoped_ptr<GnubbyAuthHandler>(CreateGnubbyAuthHandlerPtr(client_stub));
+ return make_scoped_ptr(CreateGnubbyAuthHandlerPtr(client_stub));
}
scoped_ptr<webrtc::MouseCursorMonitor>
MockDesktopEnvironment::CreateMouseCursorMonitor() {
- return scoped_ptr<webrtc::MouseCursorMonitor>(CreateMouseCursorMonitorPtr());
+ return make_scoped_ptr(CreateMouseCursorMonitorPtr());
}
MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() {}
@@ -56,7 +56,7 @@ MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {}
scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create(
base::WeakPtr<ClientSessionControl> client_session_control) {
- return scoped_ptr<DesktopEnvironment>(CreatePtr());
+ return make_scoped_ptr(CreatePtr());
}
MockInputInjector::MockInputInjector() {}