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

Unified Diff: remoting/host/disconnect_window_mac.mm

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/disconnect_window_linux.cc ('k') | remoting/host/disconnect_window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/disconnect_window_mac.mm
diff --git a/remoting/host/disconnect_window_mac.mm b/remoting/host/disconnect_window_mac.mm
index c3de197136e211f20e4a4e331b90935a87cea432..c0456b52ebfbb1186c4d1cb2ec90db0d5295dfa4 100644
--- a/remoting/host/disconnect_window_mac.mm
+++ b/remoting/host/disconnect_window_mac.mm
@@ -54,8 +54,8 @@ void DisconnectWindowMac::Hide() {
window_controller_ = nil;
}
-remoting::DisconnectWindow* remoting::DisconnectWindow::Create() {
- return new DisconnectWindowMac;
+scoped_ptr<DisconnectWindow> DisconnectWindow::Create() {
+ return scoped_ptr<DisconnectWindow>(new DisconnectWindowMac());
}
} // namespace remoting
« no previous file with comments | « remoting/host/disconnect_window_linux.cc ('k') | remoting/host/disconnect_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698