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

Unified Diff: third_party/WebKit/Source/wtf/Functional.h

Issue 2110363002: Rename SameThreadClosure to Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ExplicitWTFBind
Patch Set: Add WTF:: to Closure 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/wtf/Functional.h
diff --git a/third_party/WebKit/Source/wtf/Functional.h b/third_party/WebKit/Source/wtf/Functional.h
index 6754c382a16088141c110fc86ed094657d09a76b..800d068fdac0782899e508145e743df983d21341 100644
--- a/third_party/WebKit/Source/wtf/Functional.h
+++ b/third_party/WebKit/Source/wtf/Functional.h
@@ -59,7 +59,7 @@ namespace WTF {
// Thread Safety:
//
-// WTF::bind() and SameThreadClosure should be used for same-thread closures
+// WTF::bind() and WTF::Closure should be used for same-thread closures
// only, i.e. the closures must be created, executed and destructed on
// the same thread.
// Use crossThreadBind() and CrossThreadClosure if the function/task is called
@@ -262,7 +262,7 @@ std::unique_ptr<Function<base::MakeUnboundRunType<FunctionType, BoundParameters.
return bindInternal<SameThreadAffinity>(function, std::forward<BoundParameters>(boundParameters)...);
}
-typedef Function<void(), SameThreadAffinity> SameThreadClosure;
+typedef Function<void(), SameThreadAffinity> Closure;
typedef Function<void(), CrossThreadAffinity> CrossThreadClosure;
} // namespace WTF
@@ -272,7 +272,6 @@ using WTF::unretained;
using WTF::crossThreadUnretained;
using WTF::Function;
-using WTF::SameThreadClosure;
using WTF::CrossThreadClosure;
#endif // WTF_Functional_h

Powered by Google App Engine
This is Rietveld 408576698