Remove unused script android_webview/build/install_binary.
[chromium-blink-merge.git] / base / x11 / x11_error_tracker_gtk.cc
blob7a78a7c2750cd049f3da2f2365f040046166c5da
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/x11/x11_error_tracker.h"
7 #include <gdk/gdkx.h>
9 #include "base/logging.h"
11 namespace base {
13 X11ErrorTracker::X11ErrorTracker() {
14 gdk_error_trap_push();
17 X11ErrorTracker::~X11ErrorTracker() {
18 gdk_error_trap_pop();
21 bool X11ErrorTracker::FoundNewError() {
22 gdk_flush();
23 bool found_error = gdk_error_trap_pop() != 0;
25 gdk_error_trap_push();
26 return found_error;
29 } // namespace base