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

Unified Diff: components/safe_json/safe_json_parser.h

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 | « components/safe_json/json_sanitizer_unittest.cc ('k') | components/safe_json/safe_json_parser_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « components/safe_json/json_sanitizer_unittest.cc ('k') | components/safe_json/safe_json_parser_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698