Commit 1beb59f7 authored by Bo Majewski's avatar Bo Majewski Committed by Commit Bot

Explicitly disallow copy and assign

DISALLOW_COPY_AND_ASSIGN macro is deprecated as indicated on the review
of CL 2251524.

Bug: 1111229
Change-Id: Ib25ce85a8ace16b8eb7b00a0974fec5a73e536fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2362364Reviewed-by: default avatarcalamity <calamity@chromium.org>
Commit-Queue: Bo Majewski <majewski@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800414}
parent db84ef5f
......@@ -7,7 +7,6 @@
#include <memory>
#include "base/macros.h"
#include "chrome/browser/ui/webui/chromeos/file_manager/file_manager.mojom.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
......@@ -26,6 +25,10 @@ class FileManagerUI : public ui::MojoWebUIController,
explicit FileManagerUI(content::WebUI* web_ui);
~FileManagerUI() override;
// Disallow copy and assign.
FileManagerUI(const FileManagerUI&) = delete;
FileManagerUI& operator=(const FileManagerUI&) = delete;
void BindInterface(
mojo::PendingReceiver<mojom::PageHandlerFactory> pending_receiver);
......@@ -39,7 +42,6 @@ class FileManagerUI : public ui::MojoWebUIController,
std::unique_ptr<FileManagerPageHandler> page_handler_;
WEB_UI_CONTROLLER_TYPE_DECL();
DISALLOW_COPY_AND_ASSIGN(FileManagerUI);
};
} // namespace file_manager
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment