Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1110)

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2842833003: Update SupportsUserData uses with unique_ptr. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
« no previous file with comments | « content/browser/media/session/media_session_impl.cc ('k') | content/browser/service_worker/service_worker_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698