Remove DISALLOW_ macro from libcef/ (see issue #3234)

Also perform related C++ cleanup:
- Use =default instead of {} for default implementations of
  constructors/destructors.
- Replace typedef with using.
This commit is contained in:
Marshall Greenblatt
2021-12-06 15:40:25 -05:00
parent 83ffc1f00d
commit 9484d6528c
205 changed files with 944 additions and 542 deletions

View File

@@ -8,8 +8,6 @@
#include <memory>
#include <string>
#include "base/macros.h"
namespace content {
struct ContextMenuParams;
}
@@ -20,6 +18,9 @@ class CefMenuModelImpl;
// Provides platform-specific menu implementations for CefMenuCreator.
class CefMenuRunner {
public:
CefMenuRunner(const CefMenuRunner&) = delete;
CefMenuRunner& operator=(const CefMenuRunner&) = delete;
virtual bool RunContextMenu(AlloyBrowserHostImpl* browser,
CefMenuModelImpl* model,
const content::ContextMenuParams& params) = 0;
@@ -30,10 +31,8 @@ class CefMenuRunner {
// Allow deletion via std::unique_ptr only.
friend std::default_delete<CefMenuRunner>;
CefMenuRunner() {}
virtual ~CefMenuRunner() {}
DISALLOW_COPY_AND_ASSIGN(CefMenuRunner);
CefMenuRunner() = default;
virtual ~CefMenuRunner() = default;
};
#endif // CEF_LIBCEF_BROWSER_MENU_RUNNER_H_