Index: content/browser/resource_context_impl.cc |
diff --git a/content/browser/resource_context_impl.cc b/content/browser/resource_context_impl.cc |
index a9718edb06d980fe36b493846cefa9c18e69de74..141a08305332b3d9f2e33b1041c337836c4440b9 100644 |
--- a/content/browser/resource_context_impl.cc |
+++ b/content/browser/resource_context_impl.cc |
@@ -52,7 +52,7 @@ URLDataManagerBackend* GetURLDataManagerForResourceContext( |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (!context->GetUserData(kURLDataManagerBackendKeyName)) { |
context->SetUserData(kURLDataManagerBackendKeyName, |
- new URLDataManagerBackend()); |
+ base::MakeUnique<URLDataManagerBackend>()); |
} |
return static_cast<URLDataManagerBackend*>( |
context->GetUserData(kURLDataManagerBackendKeyName)); |
@@ -63,13 +63,12 @@ void InitializeResourceContext(BrowserContext* browser_context) { |
resource_context->SetUserData( |
kBlobStorageContextKeyName, |
- new UserDataAdapter<ChromeBlobStorageContext>( |
+ base::MakeUnique<UserDataAdapter<ChromeBlobStorageContext>>( |
ChromeBlobStorageContext::GetFor(browser_context))); |
resource_context->SetUserData( |
- kStreamContextKeyName, |
- new UserDataAdapter<StreamContext>( |
- StreamContext::GetFor(browser_context))); |
+ kStreamContextKeyName, base::MakeUnique<UserDataAdapter<StreamContext>>( |
+ StreamContext::GetFor(browser_context))); |
resource_context->DetachFromSequence(); |
} |