Index: content/browser/service_worker/service_worker_write_to_cache_job.cc |
diff --git a/content/browser/service_worker/service_worker_write_to_cache_job.cc b/content/browser/service_worker/service_worker_write_to_cache_job.cc |
index 42ac1ba0f053cc19384203355cbadca2da4d2d91..2824c580a6b1e069b78e08a677c3db0a0512509f 100644 |
--- a/content/browser/service_worker/service_worker_write_to_cache_job.cc |
+++ b/content/browser/service_worker/service_worker_write_to_cache_job.cc |
@@ -7,6 +7,7 @@ |
#include "base/bind.h" |
#include "base/callback.h" |
#include "base/command_line.h" |
+#include "base/memory/ptr_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "base/trace_event/trace_event.h" |
@@ -199,7 +200,7 @@ void ServiceWorkerWriteToCacheJob::InitNetRequest( |
net_request_->set_initiator(request()->initiator()); |
net_request_->SetReferrer(request()->referrer()); |
net_request_->SetUserData(URLRequestServiceWorkerData::kUserDataKey, |
- new URLRequestServiceWorkerData()); |
+ base::MakeUnique<URLRequestServiceWorkerData>()); |
if (extra_load_flags) |
net_request_->SetLoadFlags(net_request_->load_flags() | extra_load_flags); |