Chromium Code Reviews| Index: content/browser/quota_dispatcher_host.cc |
| diff --git a/content/browser/quota_dispatcher_host.cc b/content/browser/quota_dispatcher_host.cc |
| index 512beaf6aad16dea1f8b5dabdcf31b0205897e4e..f79f7e0d251eb9a2cc08d2a2d90f50b985ada8da 100644 |
| --- a/content/browser/quota_dispatcher_host.cc |
| +++ b/content/browser/quota_dispatcher_host.cc |
| @@ -6,6 +6,8 @@ |
| #include <stdint.h> |
| +#include <memory> |
|
danakj
2016/11/30 00:34:00
should include base/memory/ptr_util.h for WrapUniq
|
| + |
| #include "base/bind.h" |
| #include "base/memory/weak_ptr.h" |
| #include "base/numerics/safe_conversions.h" |
| @@ -33,7 +35,8 @@ class QuotaDispatcherHost::RequestDispatcher { |
| : dispatcher_host_(dispatcher_host), |
| render_process_id_(dispatcher_host->process_id_), |
| request_id_(request_id) { |
| - dispatcher_host_->outstanding_requests_.AddWithID(this, request_id_); |
| + dispatcher_host_->outstanding_requests_.AddWithID(base::WrapUnique(this), |
| + request_id_); |
| } |
| virtual ~RequestDispatcher() {} |