Index: chrome/browser/page_load_metrics/observers/delay_navigation_page_load_metrics_observer_unittest.cc |
diff --git a/chrome/browser/page_load_metrics/observers/delay_navigation_page_load_metrics_observer_unittest.cc b/chrome/browser/page_load_metrics/observers/delay_navigation_page_load_metrics_observer_unittest.cc |
index 3e9e2242d7cee13607b9b8fcdc6db0063c1cede6..a88983c1f5dc669e0948c630c1c80b60fde3bb5b 100644 |
--- a/chrome/browser/page_load_metrics/observers/delay_navigation_page_load_metrics_observer_unittest.cc |
+++ b/chrome/browser/page_load_metrics/observers/delay_navigation_page_load_metrics_observer_unittest.cc |
@@ -75,7 +75,7 @@ void InjectDelayNavigationThrottleWebContentsObserver::CreateForWebContents( |
if (!metrics) { |
metrics = new InjectDelayNavigationThrottleWebContentsObserver( |
web_contents, mock_time_task_runner); |
- web_contents->SetUserData(UserDataKey(), metrics); |
+ web_contents->SetUserData(UserDataKey(), base::WrapUnique(metrics)); |
} |
} |