Index: chrome/browser/search/instant_io_context.cc |
diff --git a/chrome/browser/search/instant_io_context.cc b/chrome/browser/search/instant_io_context.cc |
index 6c2c43a56897790a9dcb573c9867a975fb770d00..1cdce915b90151c1f72611c96e564f98ae990be0 100644 |
--- a/chrome/browser/search/instant_io_context.cc |
+++ b/chrome/browser/search/instant_io_context.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/search/instant_io_context.h" |
+#include "base/memory/ptr_util.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/resource_context.h" |
#include "content/public/browser/resource_request_info.h" |
@@ -50,7 +51,8 @@ void InstantIOContext::SetUserDataOnIO( |
scoped_refptr<InstantIOContext> instant_io_context) { |
resource_context->SetUserData( |
InstantIOContext::kInstantIOContextKeyName, |
- new base::UserDataAdapter<InstantIOContext>(instant_io_context.get())); |
+ base::MakeUnique<base::UserDataAdapter<InstantIOContext>>( |
+ instant_io_context.get())); |
} |
// static |