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..1781f4dcf83894c519eb137c49013608ac0a2dc1 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 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,7 @@ using WTF::unretained; |
using WTF::crossThreadUnretained; |
using WTF::Function; |
-using WTF::SameThreadClosure; |
+using WTF::Closure; |
tzik
2016/06/30 06:40:32
Can we remove `using WTF::Closure;` here and repla
hiroshige
2016/06/30 11:38:43
Done.
|
using WTF::CrossThreadClosure; |
#endif // WTF_Functional_h |