| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index 5a7c5b90e880248be1875fd93ce1cf41876df697..b49c0a4d0ffc2e6d7dd8d8177a1386aa8cc727e7 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -111,7 +111,7 @@
|
| #endif
|
|
|
| #if defined(USE_X11)
|
| -#include <X11/Xlib.h>
|
| +#include "ui/gfx/x/x11_connection.h"
|
| #endif
|
|
|
| #if defined(USE_OZONE)
|
| @@ -363,7 +363,7 @@ void BrowserMainLoop::EarlyInitialization() {
|
| #if defined(USE_X11)
|
| if (parsed_command_line_.HasSwitch(switches::kSingleProcess) ||
|
| parsed_command_line_.HasSwitch(switches::kInProcessGPU)) {
|
| - if (!XInitThreads()) {
|
| + if (!gfx::InitializeX11()) {
|
| LOG(ERROR) << "Failed to put Xlib into threaded mode.";
|
| }
|
| }
|
|
|