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

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

Issue 2060463002: DevTools: allow toValue to accept unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « third_party/WebKit/Source/platform/inspector_protocol/Array.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.h
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.h b/third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.h
index acb33a9ab25556193b131f7749bf720e3421a832..b82f04f588f7f1e7fe070fd1a7922b54c17e6716 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.h
+++ b/third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.h
@@ -36,14 +36,7 @@ template<typename T> std::unique_ptr<protocol::Value> toValue(T* param)
template<typename T> std::unique_ptr<protocol::Value> toValue(const std::unique_ptr<T>& param)
{
- static_assert(sizeof(T) == 0, "use raw pointer version.");
- return nullptr;
-}
-
-template<typename T> std::unique_ptr<protocol::Value> toValue(std::unique_ptr<T> param)
-{
- static_assert(sizeof(T) == 0, "use raw pointer version.");
- return nullptr;
+ return toValue(param.get());
}
template<typename T>
« no previous file with comments | « third_party/WebKit/Source/platform/inspector_protocol/Array.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698