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

Unified Diff: third_party/WebKit/public/platform/functional/WebFunction.h

Issue 2132973002: Replace a WTF::Function conversion operator to be a function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/public/platform/functional/WebFunction.h
diff --git a/third_party/WebKit/public/platform/functional/WebFunction.h b/third_party/WebKit/public/platform/functional/WebFunction.h
index fc3142d72d942eecb25bd567b88f06ef03034a2e..0cfbd6a58b6715a09dfaa86a975c3d095fbdbd62 100644
--- a/third_party/WebKit/public/platform/functional/WebFunction.h
+++ b/third_party/WebKit/public/platform/functional/WebFunction.h
@@ -41,7 +41,7 @@ public:
explicit WebFunction(std::unique_ptr<WTFFunction> c)
{
- m_callback = static_cast<base::Callback<R(Args...)>>(*c);
+ m_callback = convertToBaseCallback(std::move(c));
}
#endif
« third_party/WebKit/Source/wtf/Functional.h ('K') | « third_party/WebKit/Source/wtf/Functional.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698