Index: content/common/net/url_fetcher.cc |
diff --git a/content/common/net/url_fetcher.cc b/content/common/net/url_fetcher.cc |
index 6540f0da7cc2afe2b6c88b6388d6fd055ce8ec61..6ac2bf75d8b47b218c69edb2df06c26f0204fb1e 100644 |
--- a/content/common/net/url_fetcher.cc |
+++ b/content/common/net/url_fetcher.cc |
@@ -5,6 +5,7 @@ |
#include "content/public/common/url_fetcher.h" |
#include "base/bind.h" |
+#include "base/memory/ptr_util.h" |
#include "content/common/net/url_request_user_data.h" |
#include "net/url_request/url_fetcher.h" |
@@ -12,9 +13,11 @@ namespace content { |
namespace { |
-base::SupportsUserData::Data* CreateURLRequestUserData(int render_process_id, |
- int render_frame_id) { |
- return new URLRequestUserData(render_process_id, render_frame_id); |
+std::unique_ptr<base::SupportsUserData::Data> CreateURLRequestUserData( |
+ int render_process_id, |
+ int render_frame_id) { |
+ return base::MakeUnique<URLRequestUserData>(render_process_id, |
+ render_frame_id); |
} |
} // namespace |