Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5405)

Unified Diff: chrome/gpu/gpu_main.cc

Issue 5066002: X11: Make the default X11 error handler non-fatal. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/x11_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_main.cc
===================================================================
--- chrome/gpu/gpu_main.cc (revision 66337)
+++ chrome/gpu/gpu_main.cc (working copy)
@@ -30,8 +30,6 @@
#endif
#if defined(USE_X11)
-#include "app/x11_util.h"
-#include "app/x11_util_internal.h"
#include "gfx/gtk_util.h"
#endif
@@ -44,20 +42,8 @@
const int kMinGpuTimeout = 5;
const int kMaxGpuTimeout = 20;
-#if defined(USE_X11)
-int GpuX11ErrorHandler(Display* d, XErrorEvent* error) {
- LOG(ERROR) << x11_util::GetErrorEventDescription(d, error);
- return 0;
-}
+} // namespace
-void SetGpuX11ErrorHandlers() {
- // Set up the error handlers so that only general errors aren't fatal.
- x11_util::SetX11ErrorHandlers(GpuX11ErrorHandler, NULL);
-}
-#endif
-
-}
-
// Main function for starting the Gpu process.
int GpuMain(const MainFunctionParams& parameters) {
base::Time start_time = base::Time::Now();
@@ -94,7 +80,6 @@
// should just send a raw display connection down to the GPUProcessor.
g_thread_init(NULL);
gfx::GtkInitFromCommandLine(command_line);
- SetGpuX11ErrorHandlers();
#endif
// Load the GL implementation and locate the bindings before starting the GPU
« no previous file with comments | « app/x11_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698