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

Unified Diff: remoting/host/disconnect_window_win.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/disconnect_window_mac.mm ('k') | remoting/host/event_executor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/disconnect_window_win.cc
diff --git a/remoting/host/disconnect_window_win.cc b/remoting/host/disconnect_window_win.cc
index a9f77421f326aecf8760798289b4ca814ecff617..0d2be2c00d53a1edeb0990284bfb539552185fe6 100644
--- a/remoting/host/disconnect_window_win.cc
+++ b/remoting/host/disconnect_window_win.cc
@@ -290,8 +290,8 @@ void DisconnectWindowWin::EndDialog(int result) {
}
}
-DisconnectWindow* DisconnectWindow::Create() {
- return new DisconnectWindowWin;
+scoped_ptr<DisconnectWindow> DisconnectWindow::Create() {
+ return scoped_ptr<DisconnectWindow>(new DisconnectWindowWin());
}
} // namespace remoting
« no previous file with comments | « remoting/host/disconnect_window_mac.mm ('k') | remoting/host/event_executor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698