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

Unified Diff: components/history/core/browser/history_backend.h

Issue 2847013003: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: rev 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
Index: components/history/core/browser/history_backend.h
diff --git a/components/history/core/browser/history_backend.h b/components/history/core/browser/history_backend.h
index f96d2182c87b8af64de5d9378c85a24f99beffbe..c10b1e0d3814008972d21cada5b056424c6037bf 100644
--- a/components/history/core/browser/history_backend.h
+++ b/components/history/core/browser/history_backend.h
@@ -453,10 +453,9 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
// The user data allows the clients to associate data with this object.
// Multiple user data values can be stored under different keys.
- // This object will TAKE OWNERSHIP of the given data pointer, and will
- // delete the object if it is changed or the object is destroyed.
base::SupportsUserData::Data* GetUserData(const void* key) const;
- void SetUserData(const void* key, base::SupportsUserData::Data* data);
+ void SetUserData(const void* key,
+ std::unique_ptr<base::SupportsUserData::Data> data);
// Testing -------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698