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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.cpp

Issue 2004313003: DevTools: migrate from OwnPtr to std::unique_ptr for inspector protocol classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 4 years, 7 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: third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.cpp
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.cpp b/third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.cpp
index 3e61c6c8a31571918ad93e13551ede8ac75b082a..98b8e7f5dff48d40df46f33d53c6cedc65584c0d 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.cpp
+++ b/third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.cpp
@@ -7,42 +7,42 @@
namespace blink {
namespace protocol {
-PassOwnPtr<protocol::Value> toValue(int value)
+std::unique_ptr<protocol::Value> toValue(int value)
{
return FundamentalValue::create(value);
}
-PassOwnPtr<protocol::Value> toValue(double value)
+std::unique_ptr<protocol::Value> toValue(double value)
{
return FundamentalValue::create(value);
}
-PassOwnPtr<protocol::Value> toValue(bool value)
+std::unique_ptr<protocol::Value> toValue(bool value)
{
return FundamentalValue::create(value);
}
-PassOwnPtr<protocol::Value> toValue(const String16& param)
+std::unique_ptr<protocol::Value> toValue(const String16& param)
{
return StringValue::create(param);
}
-PassOwnPtr<protocol::Value> toValue(const String& param)
+std::unique_ptr<protocol::Value> toValue(const String& param)
{
return StringValue::create(param);
}
-PassOwnPtr<protocol::Value> toValue(Value* param)
+std::unique_ptr<protocol::Value> toValue(Value* param)
{
return param->clone();
}
-PassOwnPtr<protocol::Value> toValue(DictionaryValue* param)
+std::unique_ptr<protocol::Value> toValue(DictionaryValue* param)
{
return param->clone();
}
-PassOwnPtr<protocol::Value> toValue(ListValue* param)
+std::unique_ptr<protocol::Value> toValue(ListValue* param)
{
return param->clone();
}

Powered by Google App Engine
This is Rietveld 408576698