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

Unified Diff: components/safe_json/json_sanitizer.cc

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.h ('k') | components/safe_json/json_sanitizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_json/json_sanitizer.cc
diff --git a/components/safe_json/json_sanitizer.cc b/components/safe_json/json_sanitizer.cc
index 3cffc5243cad4643d74b990901a81b3c75b5879d..3ad634d1dfb2b8cc98744343b4fa57161a93aa33 100644
--- a/components/safe_json/json_sanitizer.cc
+++ b/components/safe_json/json_sanitizer.cc
@@ -34,7 +34,7 @@ class OopJsonSanitizer : public JsonSanitizer {
friend std::default_delete<OopJsonSanitizer>;
~OopJsonSanitizer() {}
- void OnParseSuccess(scoped_ptr<base::Value> value);
+ void OnParseSuccess(std::unique_ptr<base::Value> value);
void OnParseError(const std::string& error);
StringCallback success_callback_;
@@ -54,9 +54,9 @@ OopJsonSanitizer::OopJsonSanitizer(const std::string& unsafe_json,
base::Unretained(this)));
}
-void OopJsonSanitizer::OnParseSuccess(scoped_ptr<base::Value> value) {
+void OopJsonSanitizer::OnParseSuccess(std::unique_ptr<base::Value> value) {
// Self-destruct at the end of this method.
- scoped_ptr<OopJsonSanitizer> deleter(this);
+ std::unique_ptr<OopJsonSanitizer> deleter(this);
// A valid JSON document may only have a dictionary or list as its top-level
// type, but the JSON parser also accepts other types, so we filter them out.
« no previous file with comments | « components/safe_json/json_sanitizer.h ('k') | components/safe_json/json_sanitizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698