Commit cafd0b6f authored by apatrick@chromium.org's avatar apatrick@chromium.org

Disabled the Windows error dialog for the GPU process.

Rather than displaying a modal dialog, LoadLibrary and similar return an error. This allows the GPU process to fail or fall back without interacting with the user.

TEST=try
BUG=69610

Review URL: http://codereview.chromium.org/6271006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71736 0039d316-1c4b-4281-b951-d872f2087c98
parent 66728193
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
#include <stdlib.h> #include <stdlib.h>
#if defined(OS_WIN)
#include <windows.h>
#endif
#include "app/win/scoped_com_initializer.h" #include "app/win/scoped_com_initializer.h"
#include "base/environment.h" #include "base/environment.h"
#include "base/message_loop.h" #include "base/message_loop.h"
...@@ -51,6 +55,13 @@ int GpuMain(const MainFunctionParams& parameters) { ...@@ -51,6 +55,13 @@ int GpuMain(const MainFunctionParams& parameters) {
MessageLoop main_message_loop(MessageLoop::TYPE_UI); MessageLoop main_message_loop(MessageLoop::TYPE_UI);
base::PlatformThread::SetName("CrGpuMain"); 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; app::win::ScopedCOMInitializer com_initializer;
#if defined(USE_X11) #if defined(USE_X11)
......
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