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

Unified Diff: base/supports_user_data.cc

Issue 2860613003: Remove the deprecated raw-pointer call from SupportsUserData (Closed)
Patch Set: Created 3 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') | no next file » | 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 7065917a50519c29a73be3ac2cdad1685e2ac732..719056635e0afa3168d72c5a46ccfa011c9f7848 100644
--- a/base/supports_user_data.cc
+++ b/base/supports_user_data.cc
@@ -4,8 +4,6 @@
#include "base/supports_user_data.h"
-#include "base/memory/ptr_util.h"
-
namespace base {
SupportsUserData::SupportsUserData() {
@@ -19,11 +17,7 @@ SupportsUserData::Data* SupportsUserData::GetUserData(const void* key) const {
DataMap::const_iterator found = user_data_.find(key);
if (found != user_data_.end())
return found->second.get();
- return NULL;
-}
-
-void SupportsUserData::SetUserData(const void* key, Data* data) {
- SetUserData(key, WrapUnique(data));
+ return nullptr;
}
void SupportsUserData::SetUserData(const void* key,
« no previous file with comments | « base/supports_user_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698