Use scoped_ptr<> to pass ownership in more places.
Review URL: http://codereview.chromium.org/9720019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127767 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/remoting/host/continue_window_win.cc b/remoting/host/continue_window_win.cc
index 190cc42e..c62289b 100644
--- a/remoting/host/continue_window_win.cc
+++ b/remoting/host/continue_window_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -148,8 +148,8 @@
SetWindowText(hwndCancel, strings.stop_sharing_button_text.c_str());
}
-ContinueWindow* ContinueWindow::Create() {
- return new ContinueWindowWin();
+scoped_ptr<ContinueWindow> ContinueWindow::Create() {
+ return scoped_ptr<ContinueWindow>(new ContinueWindowWin());
}
} // namespace remoting