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; |
} |