Index: components/bookmarks/browser/bookmark_codec.h |
diff --git a/components/bookmarks/browser/bookmark_codec.h b/components/bookmarks/browser/bookmark_codec.h |
index 8b42d3940bbb12bc3475b42564d0021721c87440..7760826e4f61d7769fe907a2b9f639f5e953e211 100644 |
--- a/components/bookmarks/browser/bookmark_codec.h |
+++ b/components/bookmarks/browser/bookmark_codec.h |
@@ -6,6 +6,8 @@ |
#define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CODEC_H_ |
#include <stdint.h> |
+ |
+#include <memory> |
#include <set> |
#include <string> |
@@ -108,8 +110,7 @@ class BookmarkCodec { |
private: |
// Encodes node and all its children into a Value object and returns it. |
- // The caller takes ownership of the returned object. |
- base::Value* EncodeNode(const BookmarkNode* node); |
+ std::unique_ptr<base::Value> EncodeNode(const BookmarkNode* node); |
// Encodes the given meta info into a Value object and returns it. The caller |
// takes ownership of the returned object. |