Index: third_party/WebKit/Source/platform/CrossThreadCopier.h |
diff --git a/third_party/WebKit/Source/platform/CrossThreadCopier.h b/third_party/WebKit/Source/platform/CrossThreadCopier.h |
index a46f9d606f4a430841ceaa3c084234b076f11c17..fd55b9cd583f4a3dd8314b5e52543bb8c321cfd1 100644 |
--- a/third_party/WebKit/Source/platform/CrossThreadCopier.h |
+++ b/third_party/WebKit/Source/platform/CrossThreadCopier.h |
@@ -149,6 +149,16 @@ struct CrossThreadCopier<std::unique_ptr<T, Deleter>> { |
} |
}; |
+template <typename T, size_t inlineCapacity, typename Allocator> |
+struct CrossThreadCopier< |
+ Vector<std::unique_ptr<T>, inlineCapacity, Allocator>> { |
+ STATIC_ONLY(CrossThreadCopier); |
+ using Type = Vector<std::unique_ptr<T>, inlineCapacity, Allocator>; |
+ static Type copy(Type pointer) { |
+ return pointer; // This is in fact a move. |
+ } |
+}; |
+ |
template <typename T> |
struct CrossThreadCopier<CrossThreadPersistent<T>> |
: public CrossThreadCopierPassThrough<CrossThreadPersistent<T>> { |