Index: components/data_use_measurement/core/data_use_user_data.h |
diff --git a/components/data_use_measurement/core/data_use_user_data.h b/components/data_use_measurement/core/data_use_user_data.h |
index 584e7a52bd1950392907f5e5c5081d9110297271..0ea0ae8d43760846eb76d1cd095e0917745a7da4 100644 |
--- a/components/data_use_measurement/core/data_use_user_data.h |
+++ b/components/data_use_measurement/core/data_use_user_data.h |
@@ -5,6 +5,7 @@ |
#ifndef COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_ |
#define COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_ |
+#include <memory> |
#include <string> |
#include "base/macros.h" |
@@ -96,9 +97,8 @@ class DataUseUserData : public base::SupportsUserData::Data { |
DataUseUserData(ServiceName service_name, AppState app_state); |
~DataUseUserData() override; |
- // Helper function to create DataUseUserData. The caller takes the ownership |
- // of the returned object. |
- static base::SupportsUserData::Data* Create( |
+ // Helper function to create DataUseUserData. |
+ static std::unique_ptr<base::SupportsUserData::Data> Create( |
DataUseUserData::ServiceName service); |
// Return the service name of the ServiceName enum. |