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 "base/memory/singleton.h"
#include "content/public/browser/web_ui_controller_factory.h"
@ -24,6 +23,12 @@ class ElectronWebUIControllerFactory : public content::WebUIControllerFactory {
ElectronWebUIControllerFactory();
~ElectronWebUIControllerFactory() override;
// disable copy
ElectronWebUIControllerFactory(const ElectronWebUIControllerFactory&) =
delete;
ElectronWebUIControllerFactory& operator=(
const ElectronWebUIControllerFactory&) = delete;
// content::WebUIControllerFactory:
content::WebUI::TypeID GetWebUIType(content::BrowserContext* browser_context,
const GURL& url) override;
@ -35,8 +40,6 @@ class ElectronWebUIControllerFactory : public content::WebUIControllerFactory {
private:
friend struct base::DefaultSingletonTraits<ElectronWebUIControllerFactory>;
DISALLOW_COPY_AND_ASSIGN(ElectronWebUIControllerFactory);
};
} // namespace electron