alloy: Fix shutdown assert if OneShotTimer is deleted on the wrong thread

This commit is contained in:
Marshall Greenblatt
2022-01-25 16:15:23 -05:00
parent f07ce7b357
commit eb2c682768
2 changed files with 12 additions and 4 deletions

View File

@ -370,7 +370,7 @@ class AlloyBrowserHostImpl : public CefBrowserHostBase,
// Timer for determining when "recently audible" transitions to false. This
// starts running when a tab stops being audible, and is canceled if it starts
// being audible again before it fires.
base::OneShotTimer recently_audible_timer_;
std::unique_ptr<base::OneShotTimer> recently_audible_timer_;
};
#endif // CEF_LIBCEF_BROWSER_ALLOY_ALLOY_BROWSER_HOST_IMPL_H_