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
|
@ -9,7 +9,6 @@
|
|||
#include <string>
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "base/one_shot_event.h"
|
||||
|
@ -38,6 +37,10 @@ class ElectronExtensionSystem : public ExtensionSystem {
|
|||
explicit ElectronExtensionSystem(content::BrowserContext* browser_context);
|
||||
~ElectronExtensionSystem() override;
|
||||
|
||||
// disable copy
|
||||
ElectronExtensionSystem(const ElectronExtensionSystem&) = delete;
|
||||
ElectronExtensionSystem& operator=(const ElectronExtensionSystem&) = delete;
|
||||
|
||||
// Loads an unpacked extension from a directory. Returns the extension on
|
||||
// success, or nullptr otherwise.
|
||||
void LoadExtension(
|
||||
|
@ -115,8 +118,6 @@ class ElectronExtensionSystem : public ExtensionSystem {
|
|||
base::OneShotEvent ready_;
|
||||
|
||||
base::WeakPtrFactory<ElectronExtensionSystem> weak_factory_{this};
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ElectronExtensionSystem);
|
||||
};
|
||||
|
||||
} // namespace extensions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue