Index: components/data_use_measurement/core/data_use_user_data.cc |
diff --git a/components/data_use_measurement/core/data_use_user_data.cc b/components/data_use_measurement/core/data_use_user_data.cc |
index ebae0e3d205fdcf28b733a28facd4f9dc70014d4..4cb0f12cdd092b6fe0ef4dabc429ac9da9f2713a 100644 |
--- a/components/data_use_measurement/core/data_use_user_data.cc |
+++ b/components/data_use_measurement/core/data_use_user_data.cc |
@@ -8,6 +8,7 @@ |
#include "base/android/application_status_listener.h" |
#endif |
+#include "base/memory/ptr_util.h" |
#include "net/url_request/url_fetcher.h" |
namespace data_use_measurement { |
@@ -40,9 +41,9 @@ const void* const DataUseUserData::kUserDataKey = |
&DataUseUserData::kUserDataKey; |
// static |
-base::SupportsUserData::Data* DataUseUserData::Create( |
+std::unique_ptr<base::SupportsUserData::Data> DataUseUserData::Create( |
ServiceName service_name) { |
- return new DataUseUserData(service_name, GetCurrentAppState()); |
+ return base::MakeUnique<DataUseUserData>(service_name, GetCurrentAppState()); |
} |
// static |