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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc

Issue 2842833003: Update SupportsUserData uses with unique_ptr. (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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc
index 425d1be797fcde448b75b7238b87c04322ea227e..72a1d44cda612e667a37aa96d583ed0a197ed330 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc
@@ -4,6 +4,7 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h"
+#include "base/memory/ptr_util.h"
#include "net/url_request/url_request.h"
namespace data_reduction_proxy {
@@ -49,7 +50,7 @@ DataReductionProxyData* DataReductionProxyData::GetDataAndCreateIfNecessary(
if (data)
return data;
data = new DataReductionProxyData();
- request->SetUserData(kDataReductionProxyUserDataKey, data);
+ request->SetUserData(kDataReductionProxyUserDataKey, base::WrapUnique(data));
return data;
}
« no previous file with comments | « chrome/browser/tracing/navigation_tracing.h ('k') | components/data_use_measurement/core/data_use_measurement.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698