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

Issue 8161005: Fix a bug in dbus::Bus::AddFilterFunction(). (Closed)

Created:
9 years, 2 months ago by satorux1
Modified:
9 years, 2 months ago
Reviewers:
cwolfe
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix a bug in dbus::Bus::AddFilterFunction(). We should not reject the same function if it's associated with different data. BUG=99258 TEST=adde a unit test and confirmed it passed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104208

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -20 lines) Patch
M dbus/bus.h View 3 chunks +9 lines, -5 lines 0 comments Download
M dbus/bus.cc View 1 chunk +19 lines, -11 lines 2 comments Download
M dbus/bus_unittest.cc View 2 chunks +32 lines, -0 lines 0 comments Download
M dbus/object_proxy.cc View 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
satorux1
9 years, 2 months ago (2011-10-05 22:34:48 UTC) #1
cwolfe
Thanks for the quick fix. Roughly half a nit, but LGTM. http://codereview.chromium.org/8161005/diff/1/dbus/bus.cc File dbus/bus.cc (right): ...
9 years, 2 months ago (2011-10-05 22:39:15 UTC) #2
satorux1
9 years, 2 months ago (2011-10-05 23:04:40 UTC) #3
http://codereview.chromium.org/8161005/diff/1/dbus/bus.cc
File dbus/bus.cc (right):

http://codereview.chromium.org/8161005/diff/1/dbus/bus.cc#newcode453
dbus/bus.cc:453: return false;
On 2011/10/05 22:39:16, cwolfe wrote:
> Do not know our rules for logging pointer-like things. For debug, I tend to
cast
> them to (void*) so they become unique hex strings.

I thought our logging library automatically converted pointers to hex strings,
but I might be wrong.

C-style cast like (void*) is prohibited by the Google C++ style guide. we may
need to use reinterpret_cast for function pointers, but for now. I'd keep the
code as is...

Powered by Google App Engine
This is Rietveld 408576698