Index: chrome/browser/metrics/renderer_uptime_web_contents_observer.cc |
diff --git a/chrome/browser/metrics/renderer_uptime_web_contents_observer.cc b/chrome/browser/metrics/renderer_uptime_web_contents_observer.cc |
index 701101932573ec272b7abe66aad13dbc34859912..f9c11ee254553a77be14fcf7132f29e0cb9bf4f2 100644 |
--- a/chrome/browser/metrics/renderer_uptime_web_contents_observer.cc |
+++ b/chrome/browser/metrics/renderer_uptime_web_contents_observer.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/metrics/renderer_uptime_web_contents_observer.h" |
+#include "base/memory/ptr_util.h" |
#include "chrome/browser/metrics/renderer_uptime_tracker.h" |
#include "content/public/browser/render_process_host.h" |
@@ -24,7 +25,7 @@ RendererUptimeWebContentsObserver::CreateForWebContents( |
RendererUptimeWebContentsObserver* observer = FromWebContents(web_contents); |
if (!observer) { |
observer = new RendererUptimeWebContentsObserver(web_contents); |
- web_contents->SetUserData(UserDataKey(), observer); |
+ web_contents->SetUserData(UserDataKey(), base::WrapUnique(observer)); |
} |
return observer; |
} |