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

Unified Diff: chromecast/base/serializers.h

Issue 1875623002: Convert //chromecast 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 | « chromecast/base/metrics/cast_metrics_helper.cc ('k') | chromecast/base/serializers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/serializers.h
diff --git a/chromecast/base/serializers.h b/chromecast/base/serializers.h
index 06c79b760672add766c76e99ed337b10d28a16b5..df648feed65f7b071acef40dcbfb6acec452e7e2 100644
--- a/chromecast/base/serializers.h
+++ b/chromecast/base/serializers.h
@@ -5,9 +5,9 @@
#ifndef CHROMECAST_BASE_SERIALIZERS_H_
#define CHROMECAST_BASE_SERIALIZERS_H_
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
namespace base {
class Value;
@@ -19,16 +19,17 @@ namespace chromecast {
// Helper function which deserializes JSON |text| into a base::Value. If |text|
// is empty, is not valid JSON, or if some other deserialization error occurs,
// the return value will hold the NULL pointer.
-scoped_ptr<base::Value> DeserializeFromJson(const std::string& text);
+std::unique_ptr<base::Value> DeserializeFromJson(const std::string& text);
// Helper function which serializes |value| into a JSON string. If a
// serialization error occurs,the return value will hold the NULL pointer.
-scoped_ptr<std::string> SerializeToJson(const base::Value& value);
+std::unique_ptr<std::string> SerializeToJson(const base::Value& value);
// Helper function which deserializes JSON file at |path| into a base::Value.
// If file in |path| is empty, is not valid JSON, or if some other
// deserialization error occurs, the return value will hold the NULL pointer.
-scoped_ptr<base::Value> DeserializeJsonFromFile(const base::FilePath& path);
+std::unique_ptr<base::Value> DeserializeJsonFromFile(
+ const base::FilePath& path);
// Helper function which serializes |value| into the file at |path|. The
// function returns true on success, false otherwise.
« no previous file with comments | « chromecast/base/metrics/cast_metrics_helper.cc ('k') | chromecast/base/serializers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698