Index: components/feature_engagement_tracker/internal/android/feature_engagement_tracker_impl_android.cc |
diff --git a/components/feature_engagement_tracker/internal/android/feature_engagement_tracker_impl_android.cc b/components/feature_engagement_tracker/internal/android/feature_engagement_tracker_impl_android.cc |
index 2bd7ad5a2c10f9e531c545e2620f0a25a316ebd4..f22a3d12a96e6cbc5ee2921d7c5eb2d0bc9b4185 100644 |
--- a/components/feature_engagement_tracker/internal/android/feature_engagement_tracker_impl_android.cc |
+++ b/components/feature_engagement_tracker/internal/android/feature_engagement_tracker_impl_android.cc |
@@ -12,6 +12,7 @@ |
#include "base/android/scoped_java_ref.h" |
#include "base/bind.h" |
#include "base/feature_list.h" |
+#include "base/memory/ptr_util.h" |
#include "components/feature_engagement_tracker/internal/feature_list.h" |
#include "components/feature_engagement_tracker/public/feature_engagement_tracker.h" |
#include "jni/FeatureEngagementTrackerImpl_jni.h" |
@@ -43,7 +44,8 @@ FeatureEngagementTrackerImplAndroid* FromFeatureEngagementTrackerImpl( |
if (!impl_android) { |
impl_android = |
new FeatureEngagementTrackerImplAndroid(impl, GetAllFeatures()); |
- impl->SetUserData(kFeatureEngagementTrackerImplAndroidKey, impl_android); |
+ impl->SetUserData(kFeatureEngagementTrackerImplAndroidKey, |
+ base::WrapUnique(impl_android)); |
} |
return impl_android; |
} |