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

Unified Diff: content/browser/browser_context.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/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index 8755124590014af25d76024faf890a1d113a9c76..509baef956e1a3f77358aace528bdfe20057ac38 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -226,7 +226,8 @@ storage::ExternalMountPoints* BrowserContext::GetMountPoints(
storage::ExternalMountPoints::CreateRefCounted();
context->SetUserData(
kMountPointsKey,
- new UserDataAdapter<storage::ExternalMountPoints>(mount_points.get()));
+ base::MakeUnique<UserDataAdapter<storage::ExternalMountPoints>>(
+ mount_points.get()));
}
return UserDataAdapter<storage::ExternalMountPoints>::Get(context,
« no previous file with comments | « content/browser/blob_storage/chrome_blob_storage_context.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698