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

Unified Diff: components/safe_json/safe_json_parser_android.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/safe_json_parser.h ('k') | components/safe_json/safe_json_parser_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_json/safe_json_parser_android.cc
diff --git a/components/safe_json/safe_json_parser_android.cc b/components/safe_json/safe_json_parser_android.cc
index 3bfe628da6f8b08241b8577bb6ade5706644d3b5..0994ef5a91322a4bbc0dd7c6e2c8bf0250b3b078 100644
--- a/components/safe_json/safe_json_parser_android.cc
+++ b/components/safe_json/safe_json_parser_android.cc
@@ -35,11 +35,11 @@ void SafeJsonParserAndroid::Start() {
void SafeJsonParserAndroid::OnSanitizationSuccess(
const std::string& sanitized_json) {
// Self-destruct at the end of this method.
- scoped_ptr<SafeJsonParserAndroid> deleter(this);
+ std::unique_ptr<SafeJsonParserAndroid> deleter(this);
int error_code;
std::string error;
- scoped_ptr<base::Value> value = base::JSONReader::ReadAndReturnError(
+ std::unique_ptr<base::Value> value = base::JSONReader::ReadAndReturnError(
sanitized_json, base::JSON_PARSE_RFC, &error_code, &error);
if (!value) {
« no previous file with comments | « components/safe_json/safe_json_parser.h ('k') | components/safe_json/safe_json_parser_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698