chore: remove last instances of base::Bind (#18178)
* chore: remove last instances of base::Bind * MessageBoxCallback is a OnceCallback * convert permission helepr cbs to Once * convert ResponseCallback to Once
This commit is contained in:
parent
96371b6d75
commit
9af5072115
23 changed files with 122 additions and 109 deletions
|
@ -14,8 +14,9 @@ namespace mate {
|
|||
// only ONCE in the program's whole lifetime, otherwise we would have memory
|
||||
// leak.
|
||||
template <typename T, typename Sig>
|
||||
v8::Local<v8::Function> CreateConstructor(v8::Isolate* isolate,
|
||||
const base::Callback<Sig>& func) {
|
||||
v8::Local<v8::Function> CreateConstructor(
|
||||
v8::Isolate* isolate,
|
||||
const base::RepeatingCallback<Sig>& func) {
|
||||
#ifndef NDEBUG
|
||||
static bool called = false;
|
||||
CHECK(!called) << "CreateConstructor can only be called for one type once";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue