Commit f069dca2 authored by Gustavo Noronha's avatar Gustavo Noronha

Only create DesktopScreen for the non-ozone case

parent 82d48393
...@@ -160,7 +160,7 @@ int CefBrowserMainParts::PreCreateThreads() { ...@@ -160,7 +160,7 @@ int CefBrowserMainParts::PreCreateThreads() {
// before the IO thread is started. // before the IO thread is started.
content::GpuDataManager::GetInstance(); content::GpuDataManager::GetInstance();
#if defined(USE_AURA) #if defined(USE_AURA) && !defined(USE_OZONE)
display::Screen::SetScreenInstance(views::CreateDesktopScreen()); display::Screen::SetScreenInstance(views::CreateDesktopScreen());
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment