Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1119)

Unified Diff: content/browser/quota_dispatcher_host.cc

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..88487ce5092dc17f012d6b0c743104ca84baad93 100644
--- a/content/browser/quota_dispatcher_host.cc
+++ b/content/browser/quota_dispatcher_host.cc
@@ -6,7 +6,10 @@
#include <stdint.h>
+#include <memory>
+
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/weak_ptr.h"
#include "base/numerics/safe_conversions.h"
#include "base/trace_event/trace_event.h"
@@ -33,7 +36,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() {}
« no previous file with comments | « content/browser/permissions/permission_service_impl.cc ('k') | content/child/fileapi/file_system_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698