Index: base/json/json_parser.h |
diff --git a/base/json/json_parser.h b/base/json/json_parser.h |
index 304edd1ac844911456c07277fdf396af0b93b5e8..5bdec588e040899f9228255d70d7d9a9c7bf3648 100644 |
--- a/base/json/json_parser.h |
+++ b/base/json/json_parser.h |
@@ -8,6 +8,7 @@ |
#include <stddef.h> |
#include <stdint.h> |
+#include <memory> |
#include <string> |
#include "base/base_export.h" |
@@ -50,7 +51,7 @@ class BASE_EXPORT JSONParser { |
// Parses the input string according to the set options and returns the |
// result as a Value owned by the caller. |
- Value* Parse(const StringPiece& input); |
+ std::unique_ptr<Value> Parse(StringPiece input); |
// Returns the error code. |
JSONReader::JsonParseError error_code() const; |