mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Windows: Fix AssertBlockingAllowed failure in GetAzureADJoinStateStorage (fixes issue #3342)
This commit is contained in:
@ -55,6 +55,7 @@
|
|||||||
#include "ui/wm/core/wm_state.h"
|
#include "ui/wm/core/wm_state.h"
|
||||||
|
|
||||||
#if BUILDFLAG(IS_WIN)
|
#if BUILDFLAG(IS_WIN)
|
||||||
|
#include "base/enterprise_util.h"
|
||||||
#include "chrome/browser/chrome_browser_main_win.h"
|
#include "chrome/browser/chrome_browser_main_win.h"
|
||||||
#include "chrome/browser/win/parental_controls.h"
|
#include "chrome/browser/win/parental_controls.h"
|
||||||
#endif
|
#endif
|
||||||
@ -308,7 +309,13 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() {
|
|||||||
// Windows parental controls calls can be slow, so we do an early init here
|
// Windows parental controls calls can be slow, so we do an early init here
|
||||||
// that calculates this value off of the UI thread.
|
// that calculates this value off of the UI thread.
|
||||||
InitializeWinParentalControls();
|
InitializeWinParentalControls();
|
||||||
#endif
|
|
||||||
|
// These methods may call LoadLibrary and could trigger
|
||||||
|
// AssertBlockingAllowed() failures if executed at a later time on the UI
|
||||||
|
// thread.
|
||||||
|
base::IsManagedDevice();
|
||||||
|
base::IsEnterpriseDevice();
|
||||||
|
#endif // BUILDFLAG(IS_WIN)
|
||||||
|
|
||||||
// Triggers initialization of the singleton instance on UI thread.
|
// Triggers initialization of the singleton instance on UI thread.
|
||||||
PluginFinder::GetInstance();
|
PluginFinder::GetInstance();
|
||||||
|
Reference in New Issue
Block a user