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

Unified Diff: base/supports_user_data.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 months 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
« no previous file with comments | « base/supports_user_data.h ('k') | base/synchronization/condition_variable_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/supports_user_data.cc
diff --git a/base/supports_user_data.cc b/base/supports_user_data.cc
index 482a7e1ed61d82c08365a33ce187dab105c069ba..6ba3ff6c8db8f5bdf85a646c3880d3f09c486c7c 100644
--- a/base/supports_user_data.cc
+++ b/base/supports_user_data.cc
@@ -4,6 +4,8 @@
#include "base/supports_user_data.h"
+#include "base/memory/ptr_util.h"
+
namespace base {
SupportsUserData::SupportsUserData() {
@@ -21,7 +23,7 @@ SupportsUserData::Data* SupportsUserData::GetUserData(const void* key) const {
void SupportsUserData::SetUserData(const void* key, Data* data) {
DCHECK(thread_checker_.CalledOnValidThread());
- user_data_[key] = make_scoped_ptr(data);
+ user_data_[key] = WrapUnique(data);
}
void SupportsUserData::RemoveUserData(const void* key) {
« no previous file with comments | « base/supports_user_data.h ('k') | base/synchronization/condition_variable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698