Index: chrome/browser/page_load_metrics/metrics_web_contents_observer.cc |
diff --git a/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc b/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc |
index 7a8b8068352ca5c8a85c0f139043e4cc4eeb812f..dbf296f4e4e984ab9245492fb4e0d87476b2a39a 100644 |
--- a/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc |
+++ b/chrome/browser/page_load_metrics/metrics_web_contents_observer.cc |
@@ -84,7 +84,7 @@ MetricsWebContentsObserver* MetricsWebContentsObserver::CreateForWebContents( |
if (!metrics) { |
metrics = new MetricsWebContentsObserver(web_contents, |
std::move(embedder_interface)); |
- web_contents->SetUserData(UserDataKey(), metrics); |
+ web_contents->SetUserData(UserDataKey(), base::WrapUnique(metrics)); |
} |
return metrics; |
} |