Index: components/safe_json/safe_json_parser.h |
diff --git a/components/safe_json/safe_json_parser.h b/components/safe_json/safe_json_parser.h |
index 962dfa6a0ed5fe46fa85febe0600a97f9c775dd3..6b66ba431b6a7a9f283e21534152cdef43439e9c 100644 |
--- a/components/safe_json/safe_json_parser.h |
+++ b/components/safe_json/safe_json_parser.h |
@@ -5,10 +5,10 @@ |
#ifndef COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_H_ |
#define COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_H_ |
+#include <memory> |
#include <string> |
#include "base/callback.h" |
-#include "base/memory/scoped_ptr.h" |
namespace base { |
class Value; |
@@ -23,7 +23,7 @@ namespace safe_json { |
// deletes itself. |
class SafeJsonParser { |
public: |
- using SuccessCallback = base::Callback<void(scoped_ptr<base::Value>)>; |
+ using SuccessCallback = base::Callback<void(std::unique_ptr<base::Value>)>; |
using ErrorCallback = base::Callback<void(const std::string&)>; |
using Factory = SafeJsonParser* (*)(const std::string& unsafe_json, |