Index: base/supports_user_data.cc |
diff --git a/base/supports_user_data.cc b/base/supports_user_data.cc |
index 482a7e1ed61d82c08365a33ce187dab105c069ba..6ba3ff6c8db8f5bdf85a646c3880d3f09c486c7c 100644 |
--- a/base/supports_user_data.cc |
+++ b/base/supports_user_data.cc |
@@ -4,6 +4,8 @@ |
#include "base/supports_user_data.h" |
+#include "base/memory/ptr_util.h" |
+ |
namespace base { |
SupportsUserData::SupportsUserData() { |
@@ -21,7 +23,7 @@ SupportsUserData::Data* SupportsUserData::GetUserData(const void* key) const { |
void SupportsUserData::SetUserData(const void* key, Data* data) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
- user_data_[key] = make_scoped_ptr(data); |
+ user_data_[key] = WrapUnique(data); |
} |
void SupportsUserData::RemoveUserData(const void* key) { |