Index: base/memory/scoped_ptr.h |
diff --git a/base/memory/scoped_ptr.h b/base/memory/scoped_ptr.h |
index e63887483840e37e727bb3ccd8893e3bd6505b1a..37a980232bef963b59493e422b9724a4ea0db9ee 100644 |
--- a/base/memory/scoped_ptr.h |
+++ b/base/memory/scoped_ptr.h |
@@ -11,15 +11,10 @@ |
#include <memory> |
+// TODO(dcheng): Temporary, to facilitate transition off scoped_ptr. |
+#include "base/memory/ptr_util.h" |
+ |
template <typename T, typename D = std::default_delete<T>> |
using scoped_ptr = std::unique_ptr<T, D>; |
-// A function to convert T* into scoped_ptr<T> |
-// Doing e.g. make_scoped_ptr(new FooBarBaz<type>(arg)) is a shorter notation |
-// for scoped_ptr<FooBarBaz<type> >(new FooBarBaz<type>(arg)) |
-template <typename T> |
-scoped_ptr<T> make_scoped_ptr(T* ptr) { |
- return scoped_ptr<T>(ptr); |
-} |
- |
#endif // BASE_MEMORY_SCOPED_PTR_H_ |