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

Unified Diff: remoting/host/host_mock_objects.cc

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/heartbeat_sender.h ('k') | remoting/host/it2me_host_user_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_mock_objects.cc
diff --git a/remoting/host/host_mock_objects.cc b/remoting/host/host_mock_objects.cc
index 5144e7e01b289e3fc5d9c585caed14beff0cff96..91152d0515f7beb607ee0fc73ce9678d8ef825e3 100644
--- a/remoting/host/host_mock_objects.cc
+++ b/remoting/host/host_mock_objects.cc
@@ -30,24 +30,24 @@ MockDisconnectWindow::MockDisconnectWindow() {}
MockDisconnectWindow::~MockDisconnectWindow() {}
-DisconnectWindow* DisconnectWindow::Create() {
- return new MockDisconnectWindow();
+scoped_ptr<DisconnectWindow> DisconnectWindow::Create() {
+ return scoped_ptr<DisconnectWindow>(new MockDisconnectWindow());
}
MockContinueWindow::MockContinueWindow() {}
MockContinueWindow::~MockContinueWindow() {}
-ContinueWindow* ContinueWindow::Create() {
- return new MockContinueWindow();
+scoped_ptr<ContinueWindow> ContinueWindow::Create() {
+ return scoped_ptr<ContinueWindow>(new MockContinueWindow());
}
MockLocalInputMonitor::MockLocalInputMonitor() {}
MockLocalInputMonitor::~MockLocalInputMonitor() {}
-LocalInputMonitor* LocalInputMonitor::Create() {
- return new MockLocalInputMonitor();
+scoped_ptr<LocalInputMonitor> LocalInputMonitor::Create() {
+ return scoped_ptr<LocalInputMonitor>(new MockLocalInputMonitor());
}
MockChromotingHostContext::MockChromotingHostContext()
« no previous file with comments | « remoting/host/heartbeat_sender.h ('k') | remoting/host/it2me_host_user_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698