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

Unified Diff: components/safe_json/testing_json_parser.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
Index: components/safe_json/testing_json_parser.cc
diff --git a/components/safe_json/testing_json_parser.cc b/components/safe_json/testing_json_parser.cc
index f7c81198d86971dcdfe93237a42b6ecd8d83baff..ec24bc90707126312224b1a461bb7d9ccfd51db7 100644
--- a/components/safe_json/testing_json_parser.cc
+++ b/components/safe_json/testing_json_parser.cc
@@ -4,11 +4,12 @@
#include "components/safe_json/testing_json_parser.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/json/json_reader.h"
#include "base/location.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/values.h"
@@ -45,7 +46,7 @@ TestingJsonParser::~TestingJsonParser() {}
void TestingJsonParser::Start() {
int error_code;
std::string error;
- scoped_ptr<base::Value> value = base::JSONReader::ReadAndReturnError(
+ std::unique_ptr<base::Value> value = base::JSONReader::ReadAndReturnError(
unsafe_json_, base::JSON_PARSE_RFC, &error_code, &error);
// Run the callback asynchronously. Post the delete task first, so that the
« no previous file with comments | « components/safe_json/safe_json_parser_message_filter.cc ('k') | components/safe_json/testing_json_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698