diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 21:48:00 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 21:48:00 +0000 |
commit | a42d4638f0335dbfd14c1c9f6b05a7b09703a78e (patch) | |
tree | 96d7687e21b42cd5b5de4b23b2a1da472572e60c /base/message_pump_x.cc | |
parent | 1b5eee12138e3963415453974c824472429c4d80 (diff) | |
download | chromium_src-a42d4638f0335dbfd14c1c9f6b05a7b09703a78e.zip chromium_src-a42d4638f0335dbfd14c1c9f6b05a7b09703a78e.tar.gz chromium_src-a42d4638f0335dbfd14c1c9f6b05a7b09703a78e.tar.bz2 |
Replace most LOG/CHECK statements with DLOG/DCHECK statements in base.
[ Reland of 107042 http://codereview.chromium.org/8368009 ]
I tried hard not to change CHECKs that had side effects. I kept fatal checks
that seemed security or debugging-info (in crash reports) sensitive, and ones
that seems particularly well-conceived.
Review URL: http://codereview.chromium.org/8341026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_x.cc')
-rw-r--r-- | base/message_pump_x.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/message_pump_x.cc b/base/message_pump_x.cc index a9b1b8a..15276e4 100644 --- a/base/message_pump_x.cc +++ b/base/message_pump_x.cc @@ -66,7 +66,7 @@ void InitializeXInput2(void) { int event, err; if (!XQueryExtension(display, "XInputExtension", &xiopcode, &event, &err)) { - VLOG(1) << "X Input extension not available."; + DVLOG(1) << "X Input extension not available."; xiopcode = -1; return; } @@ -78,13 +78,13 @@ void InitializeXInput2(void) { int major = 2, minor = 0; #endif if (XIQueryVersion(display, &major, &minor) == BadRequest) { - VLOG(1) << "XInput2 not supported in the server."; + DVLOG(1) << "XInput2 not supported in the server."; xiopcode = -1; return; } #if defined(USE_XI2_MT) if (major < 2 || (major == 2 && minor < USE_XI2_MT)) { - VLOG(1) << "XI version on server is " << major << "." << minor << ". " + DVLOG(1) << "XI version on server is " << major << "." << minor << ". " << "But 2." << USE_XI2_MT << " is required."; xiopcode = -1; return; @@ -148,7 +148,7 @@ void MessagePumpX::InitXSource() { DCHECK(!x_source_); GPollFD* x_poll = new GPollFD(); Display* display = GetDefaultXDisplay(); - CHECK(display) << "Unable to get connection to X server"; + DCHECK(display) << "Unable to get connection to X server"; x_poll->fd = ConnectionNumber(display); x_poll->events = G_IO_IN; @@ -186,7 +186,7 @@ bool MessagePumpX::ProcessXEvent(XEvent* xev) { should_quit = true; Quit(); } else if (status == MessagePumpDispatcher::EVENT_IGNORED) { - VLOG(1) << "Event (" << xev->type << ") not handled."; + DVLOG(1) << "Event (" << xev->type << ") not handled."; } DidProcessXEvent(xev); } |