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
|
@ -11,7 +11,6 @@
|
|||
#include <vector>
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/macros.h"
|
||||
#include "base/scoped_observation.h"
|
||||
#include "build/build_config.h"
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
|
@ -46,6 +45,10 @@ class FileSelectHelper : public base::RefCountedThreadSafe<
|
|||
public content::RenderWidgetHostObserver,
|
||||
private net::DirectoryLister::DirectoryListerDelegate {
|
||||
public:
|
||||
// disable copy
|
||||
FileSelectHelper(const FileSelectHelper&) = delete;
|
||||
FileSelectHelper& operator=(const FileSelectHelper&) = delete;
|
||||
|
||||
// Show the file chooser dialog.
|
||||
static void RunFileChooser(
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
|
@ -224,8 +227,6 @@ class FileSelectHelper : public base::RefCountedThreadSafe<
|
|||
// Temporary files only used on OSX. This class is responsible for deleting
|
||||
// these files when they are no longer needed.
|
||||
std::vector<base::FilePath> temporary_files_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(FileSelectHelper);
|
||||
};
|
||||
|
||||
#endif // SHELL_BROWSER_FILE_SELECT_HELPER_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue