refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)

This commit is contained in:
Milan Burda 2021-11-03 12:41:45 +01:00 committed by GitHub
parent 2a2a1a834c
commit 65a980c673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
231 changed files with 918 additions and 576 deletions

View file

@ -7,7 +7,6 @@
#include <memory>
#include "base/macros.h"
#include "v8/include/v8.h"
namespace gin_helper {
@ -22,10 +21,12 @@ class MicrotasksScope {
v8::MicrotasksScope::kRunMicrotasks);
~MicrotasksScope();
// disable copy
MicrotasksScope(const MicrotasksScope&) = delete;
MicrotasksScope& operator=(const MicrotasksScope&) = delete;
private:
std::unique_ptr<v8::MicrotasksScope> v8_microtasks_scope_;
DISALLOW_COPY_AND_ASSIGN(MicrotasksScope);
};
} // namespace gin_helper