Commit 1c310469 authored by davidxli@chromium.org's avatar davidxli@chromium.org

Fix MessagePumpX::ProcessXEvent checking of WillProcessXEvent return value.

WillProcessXEvent returns false to indicate continue normal dispatch. The check worked because EVENT_CONTINUE happens to be 0.

BUG=None
TEST=None


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112872 0039d316-1c4b-4281-b951-d872f2087c98
parent 194c7a9c
......@@ -142,7 +142,7 @@ bool MessagePumpX::ProcessXEvent(MessagePumpDispatcher* dispatcher,
have_cookie = true;
}
if (WillProcessXEvent(xev) == EVENT_CONTINUE) {
if (!WillProcessXEvent(xev)) {
MessagePumpDispatcher::DispatchStatus status =
dispatcher->Dispatch(xev);
......
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