| Index: chrome/gpu/gpu_main.cc
|
| ===================================================================
|
| --- chrome/gpu/gpu_main.cc (revision 71474)
|
| +++ chrome/gpu/gpu_main.cc (working copy)
|
| @@ -22,6 +22,10 @@
|
| #include "chrome/app/breakpad_linux.h"
|
| #endif
|
|
|
| +#if defined(OS_WIN)
|
| +#include <windows.h>
|
| +#endif
|
| +
|
| #if defined(OS_MACOSX)
|
| #include "chrome/common/chrome_application_mac.h"
|
| #endif
|
| @@ -51,6 +55,13 @@
|
| MessageLoop main_message_loop(MessageLoop::TYPE_UI);
|
| base::PlatformThread::SetName("CrGpuMain");
|
|
|
| +#if defined(OS_WIN)
|
| + // Prevent Windows from displaying a modal dialog on failures like not being
|
| + // able to load a DLL.
|
| + SetErrorMode(
|
| + SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX);
|
| +#endif
|
| +
|
| app::win::ScopedCOMInitializer com_initializer;
|
|
|
| #if defined(USE_X11)
|
|
|