Index: content/browser/blob_storage/chrome_blob_storage_context.cc |
diff --git a/content/browser/blob_storage/chrome_blob_storage_context.cc b/content/browser/blob_storage/chrome_blob_storage_context.cc |
index 38bfcc72f12a17f284f26488ec313a0d76d3bd51..935ffe37686552ec67ba8a7c613245f0d3b80612 100644 |
--- a/content/browser/blob_storage/chrome_blob_storage_context.cc |
+++ b/content/browser/blob_storage/chrome_blob_storage_context.cc |
@@ -11,6 +11,7 @@ |
#include "base/files/file_enumerator.h" |
#include "base/files/file_util.h" |
#include "base/guid.h" |
+#include "base/memory/ptr_util.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/single_thread_task_runner.h" |
#include "base/task_runner.h" |
@@ -82,7 +83,8 @@ ChromeBlobStorageContext* ChromeBlobStorageContext::GetFor( |
new ChromeBlobStorageContext(); |
context->SetUserData( |
kBlobStorageContextKeyName, |
- new UserDataAdapter<ChromeBlobStorageContext>(blob.get())); |
+ base::MakeUnique<UserDataAdapter<ChromeBlobStorageContext>>( |
+ blob.get())); |
// Check first to avoid memory leak in unittests. |
bool io_thread_valid = BrowserThread::IsMessageLoopValid(BrowserThread::IO); |