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

@ -8,7 +8,6 @@
#include <map>
#include <string>
#include "base/macros.h"
#include "build/build_config.h"
namespace base {
@ -53,6 +52,12 @@ class AutoUpdater {
public:
typedef std::map<std::string, std::string> HeaderMap;
AutoUpdater() = delete;
// disable copy
AutoUpdater(const AutoUpdater&) = delete;
AutoUpdater& operator=(const AutoUpdater&) = delete;
// Gets/Sets the delegate.
static Delegate* GetDelegate();
static void SetDelegate(Delegate* delegate);
@ -67,8 +72,6 @@ class AutoUpdater {
private:
static Delegate* delegate_;
DISALLOW_IMPLICIT_CONSTRUCTORS(AutoUpdater);
};
} // namespace auto_updater