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

Unified Diff: content/common/net/url_fetcher.cc

Issue 2815913005: Switch to using scoped_ptr with UserData (Closed)
Patch Set: rebase Created 3 years, 8 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 | « content/browser/webui/url_data_manager.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/webui/url_data_manager.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698