refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)
This commit is contained in:
parent
2a2a1a834c
commit
65a980c673
231 changed files with 918 additions and 576 deletions
|
@ -84,6 +84,10 @@ class ShutdownDetector : public base::PlatformThread::Delegate {
|
|||
base::OnceCallback<void()> shutdown_callback,
|
||||
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
|
||||
|
||||
// disable copy
|
||||
ShutdownDetector(const ShutdownDetector&) = delete;
|
||||
ShutdownDetector& operator=(const ShutdownDetector&) = delete;
|
||||
|
||||
// base::PlatformThread::Delegate:
|
||||
void ThreadMain() override;
|
||||
|
||||
|
@ -91,8 +95,6 @@ class ShutdownDetector : public base::PlatformThread::Delegate {
|
|||
const int shutdown_fd_;
|
||||
base::OnceCallback<void()> shutdown_callback_;
|
||||
const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ShutdownDetector);
|
||||
};
|
||||
|
||||
ShutdownDetector::ShutdownDetector(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue