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

Unified Diff: base/supports_user_data.cc

Issue 1641563002: Remove linked_ptr usage in //base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase, really Created 4 years, 11 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/threading/sequenced_worker_pool.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 9689014d4ad8ebe08b487e228f7fa67b6e052e7f..482a7e1ed61d82c08365a33ce187dab105c069ba 100644
--- a/base/supports_user_data.cc
+++ b/base/supports_user_data.cc
@@ -21,7 +21,7 @@ SupportsUserData::Data* SupportsUserData::GetUserData(const void* key) const {
void SupportsUserData::SetUserData(const void* key, Data* data) {
DCHECK(thread_checker_.CalledOnValidThread());
- user_data_[key] = linked_ptr<Data>(data);
+ user_data_[key] = make_scoped_ptr(data);
}
void SupportsUserData::RemoveUserData(const void* key) {
« no previous file with comments | « base/supports_user_data.h ('k') | base/threading/sequenced_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698