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/files/file_path.h"
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "base/nix/xdg_util.h"
|
||||
#include "ui/base/glib/glib_signal.h"
|
||||
|
@ -44,6 +43,10 @@ class AppIndicatorIcon : public views::StatusIconLinux {
|
|||
const std::u16string& tool_tip);
|
||||
~AppIndicatorIcon() override;
|
||||
|
||||
// disable copy
|
||||
AppIndicatorIcon(const AppIndicatorIcon&) = delete;
|
||||
AppIndicatorIcon& operator=(const AppIndicatorIcon&) = delete;
|
||||
|
||||
// Indicates whether libappindicator so could be opened.
|
||||
static bool CouldOpen();
|
||||
|
||||
|
@ -105,8 +108,6 @@ class AppIndicatorIcon : public views::StatusIconLinux {
|
|||
int icon_change_count_ = 0;
|
||||
|
||||
base::WeakPtrFactory<AppIndicatorIcon> weak_factory_{this};
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(AppIndicatorIcon);
|
||||
};
|
||||
|
||||
} // namespace gtkui
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue