chore: use ScopedPumpMessagesInPrivateModes in tray (#18977)
* chore: use ScopedPumpMessagesInPrivateModes in tray * revert refcounting of AtomMenuModel * Prefer WeakPtr for posting tasks to handle unexpected destruction
This commit is contained in:
parent
d643921313
commit
6243dba068
4 changed files with 16 additions and 15 deletions
|
@ -63,7 +63,7 @@ class Menu : public mate::TrackableObject<Menu>,
|
|||
const base::Closure& callback) = 0;
|
||||
virtual void ClosePopupAt(int32_t window_id) = 0;
|
||||
|
||||
scoped_refptr<AtomMenuModel> model_;
|
||||
std::unique_ptr<AtomMenuModel> model_;
|
||||
Menu* parent_ = nullptr;
|
||||
|
||||
// Observable:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue