2693008: Fix loading non-system cursors on Windows on browser_tests

https://chromium-review.googlesource.com/c/chromium/src/+/2693008
This commit is contained in:
John Kleinschmidt 2021-03-18 15:52:54 -04:00
parent 08330cb079
commit 3b183854ff

View file

@ -86,7 +86,6 @@
#endif
#if defined(OS_WIN)
#include "ui/base/cursor/win/win_cursor_factory.h"
#include "ui/base/l10n/l10n_util_win.h"
#include "ui/display/win/dpi.h"
#include "ui/gfx/system_fonts_win.h"
@ -405,10 +404,6 @@ void ElectronBrowserMainParts::ToolkitInitialized() {
#if defined(OS_WIN)
gfx::win::SetAdjustFontCallback(&AdjustUIFont);
gfx::win::SetGetMinimumFontSizeCallback(&GetMinimumFontSize);
wchar_t module_name[MAX_PATH] = {0};
if (GetModuleFileName(NULL, module_name, base::size(module_name)))
ui::SetCursorResourceModule(module_name);
#endif
#if defined(OS_MAC)