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

Unified Diff: third_party/WebKit/Source/platform/CrossThreadCopier.h

Issue 2043583002: Remove the use of OwnedPtrDeleter in WebMessagePortChannel. (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
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 863371ae5b1c04318b86a1245d925f2d33cc2910..6491d3fc24283addd5b3cd5f5778280ddf89ccc0 100644
--- a/third_party/WebKit/Source/platform/CrossThreadCopier.h
+++ b/third_party/WebKit/Source/platform/CrossThreadCopier.h
@@ -144,11 +144,11 @@ struct CrossThreadCopier<PassOwnPtr<T>> {
}
};
-template <typename T>
-struct CrossThreadCopier<std::unique_ptr<T>> {
+template <typename T, typename Deleter>
+struct CrossThreadCopier<std::unique_ptr<T, Deleter>> {
STATIC_ONLY(CrossThreadCopier);
- using Type = std::unique_ptr<T>;
- static std::unique_ptr<T> copy(std::unique_ptr<T> pointer)
+ using Type = std::unique_ptr<T, Deleter>;
+ static std::unique_ptr<T, Deleter> copy(std::unique_ptr<T, Deleter> pointer)
{
return pointer; // This is in fact a move.
}

Powered by Google App Engine
This is Rietveld 408576698