Replace DISALLOW_COPY_AND_ASSIGN in remoting/
This replaces DISALLOW_COPY_AND_ASSIGN with explicit constructor deletes
where a local script is able to detect its insertion place (~Foo() is
public => insert before this line).
This is incomplete as not all classes have a public ~Foo() declared, so
not all DISALLOW_COPY_AND_ASSIGN occurrences are replaced.
IWYU cleanup is left as a separate pass that is easier when these macros
go away.
Bug: 1010217
Change-Id: Ibbae02ba444d7308489dfb03c31be23dcfb3c2cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3174302
Auto-Submit: Peter Boström <[email protected]>
Commit-Queue: Daniel Cheng <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Owners-Override: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/main@{#923948}
diff --git a/remoting/host/pairing_registry_delegate_linux.h b/remoting/host/pairing_registry_delegate_linux.h
index d147644..cb02cbe 100644
--- a/remoting/host/pairing_registry_delegate_linux.h
+++ b/remoting/host/pairing_registry_delegate_linux.h
@@ -21,6 +21,11 @@
: public protocol::PairingRegistry::Delegate {
public:
PairingRegistryDelegateLinux();
+
+ PairingRegistryDelegateLinux(const PairingRegistryDelegateLinux&) = delete;
+ PairingRegistryDelegateLinux& operator=(const PairingRegistryDelegateLinux&) =
+ delete;
+
~PairingRegistryDelegateLinux() override;
// PairingRegistry::Delegate interface
@@ -43,8 +48,6 @@
void SetRegistryPathForTesting(const base::FilePath& registry_path);
base::FilePath registry_path_for_testing_;
-
- DISALLOW_COPY_AND_ASSIGN(PairingRegistryDelegateLinux);
};
} // namespace remoting