Fix thread safety issue with CefBrowserHostImpl::IsWindowless

This commit is contained in:
Marshall Greenblatt
2016-02-29 15:23:44 -05:00
parent b4cf5bdb9c
commit 1b8f76dd69
2 changed files with 33 additions and 31 deletions

View File

@ -520,6 +520,7 @@ class CefBrowserHostImpl : public CefBrowserHost,
CefWindowHandle opener_;
CefRefPtr<CefRequestContext> request_context_;
scoped_ptr<CefBrowserPlatformDelegate> platform_delegate_;
const bool is_windowless_;
// Volatile state information. All access must be protected by the state lock.
base::Lock state_lock_;