summaryrefslogtreecommitdiffstats
path: root/chromium/base/bind_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/bind_internal.h')
-rw-r--r--chromium/base/bind_internal.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/chromium/base/bind_internal.h b/chromium/base/bind_internal.h
index b2f1c3c4c9c..02c06b7b584 100644
--- a/chromium/base/bind_internal.h
+++ b/chromium/base/bind_internal.h
@@ -354,10 +354,9 @@ template <typename Functor, typename SFINAE>
struct FunctorTraits;
// For empty callable types.
-// This specialization is intended to allow binding captureless lambdas by
-// base::Bind(), based on the fact that captureless lambdas are empty while
-// capturing lambdas are not. This also allows any functors as far as it's an
-// empty class.
+// This specialization is intended to allow binding captureless lambdas, based
+// on the fact that captureless lambdas are empty while capturing lambdas are
+// not. This also allows any functors as far as it's an empty class.
// Example:
//
// // Captureless lambdas are allowed.
@@ -791,10 +790,10 @@ BanUnconstructedRefCountedReceiver(const Receiver& receiver, Unused&&...) {
//
// scoped_refptr<Foo> oo = Foo::Create();
DCHECK(receiver->HasAtLeastOneRef())
- << "base::Bind() refuses to create the first reference to ref-counted "
- "objects. That is typically happens around PostTask() in their "
- "constructor, and such objects can be destroyed before `new` returns "
- "if the task resolves fast enough.";
+ << "base::Bind{Once,Repeating}() refuses to create the first reference "
+ "to ref-counted objects. That typically happens around PostTask() in "
+ "their constructor, and such objects can be destroyed before `new` "
+ "returns if the task resolves fast enough.";
}
// BindState<>
@@ -917,7 +916,7 @@ using MakeBindStateType =
// };
//
// WeakPtr<Foo> oo = nullptr;
-// base::Bind(&Foo::bar, oo).Run();
+// base::BindOnce(&Foo::bar, oo).Run();
template <typename T>
struct IsWeakReceiver : std::false_type {};