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

Unified Diff: base/supports_user_data.h

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 | « no previous file | base/supports_user_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/supports_user_data.h
diff --git a/base/supports_user_data.h b/base/supports_user_data.h
index 5c1c7e945f6ec17577476d3759b54027e5c79d17..ab40c1b3c47bc143e965b083a763c88cdf2a52c5 100644
--- a/base/supports_user_data.h
+++ b/base/supports_user_data.h
@@ -9,8 +9,8 @@
#include "base/base_export.h"
#include "base/macros.h"
-#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
namespace base {
@@ -47,7 +47,7 @@ class BASE_EXPORT SupportsUserData {
virtual ~SupportsUserData();
private:
- typedef std::map<const void*, linked_ptr<Data> > DataMap;
+ using DataMap = std::map<const void*, scoped_ptr<Data>>;
// Externally-defined data accessible by key.
DataMap user_data_;
« no previous file with comments | « no previous file | base/supports_user_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698