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

Unified Diff: base/supports_user_data.cc

Issue 2842833003: Update SupportsUserData uses with unique_ptr. (Closed)
Patch Set: rebase 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') | chrome/browser/autocomplete/shortcuts_backend_factory.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 7065917a50519c29a73be3ac2cdad1685e2ac732..675c366d1ee1eb0199251a56fca336000dc4880d 100644
--- a/base/supports_user_data.cc
+++ b/base/supports_user_data.cc
@@ -22,10 +22,6 @@ SupportsUserData::Data* SupportsUserData::GetUserData(const void* key) const {
return NULL;
}
-void SupportsUserData::SetUserData(const void* key, Data* data) {
- SetUserData(key, WrapUnique(data));
-}
-
void SupportsUserData::SetUserData(const void* key,
std::unique_ptr<Data> data) {
DCHECK(sequence_checker_.CalledOnValidSequence());
« no previous file with comments | « base/supports_user_data.h ('k') | chrome/browser/autocomplete/shortcuts_backend_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698