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

Unified Diff: base/supports_user_data.h

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/strings/utf_offset_string_conversions.cc ('k') | 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 ab40c1b3c47bc143e965b083a763c88cdf2a52c5..a9f1c93204866761292625c41a5007ae4503e1f4 100644
--- a/base/supports_user_data.h
+++ b/base/supports_user_data.h
@@ -6,11 +6,11 @@
#define BASE_SUPPORTS_USER_DATA_H_
#include <map>
+#include <memory>
#include "base/base_export.h"
#include "base/macros.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:
- using DataMap = std::map<const void*, scoped_ptr<Data>>;
+ using DataMap = std::map<const void*, std::unique_ptr<Data>>;
// Externally-defined data accessible by key.
DataMap user_data_;
« no previous file with comments | « base/strings/utf_offset_string_conversions.cc ('k') | base/supports_user_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698