Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index ada50eb768de2590c85b2df298104f6b08e95ce4..213e542cd0a0206f45c9362da15885e239456a59 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -377,7 +377,7 @@ SiteProcessMap* GetSiteProcessMapForBrowserContext(BrowserContext* context) { |
context->GetUserData(kSiteProcessMapKeyName)); |
if (!map) { |
map = new SiteProcessMap(); |
- context->SetUserData(kSiteProcessMapKeyName, map); |
+ context->SetUserData(kSiteProcessMapKeyName, base::WrapUnique(map)); |
} |
return map; |
} |
@@ -2862,7 +2862,7 @@ void RenderProcessHostImpl::ReleaseOnCloseACK( |
host->GetUserData(kSessionStorageHolderKey)); |
if (!holder) { |
holder = new SessionStorageHolder(); |
- host->SetUserData(kSessionStorageHolderKey, holder); |
+ host->SetUserData(kSessionStorageHolderKey, base::WrapUnique(holder)); |
} |
holder->Hold(sessions, view_route_id); |
} |