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

Issue 12088068: DBus: Bus::AddMatch and RemoveMatch support repeated rules. (Closed)

Created:
7 years, 10 months ago by deymo
Modified:
7 years, 10 months ago
CC:
chromium-reviews, hashimoto
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

DBus: Bus::AddMatch and RemoveMatch support repeated rules. This fix counts the number of times the same rule is added to a dbus::Bus and removes the rule from the real DBus connection when all the copies of the same match rule have been removed. BUG=chromium:173054 TEST=BusTest.DoubleAddAndRemoveMatch passes. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179809

Patch Set 1 #

Patch Set 2 : RemoveMatch returns a bool. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -12 lines) Patch
M dbus/bus.h View 1 3 chunks +8 lines, -4 lines 0 comments Download
M dbus/bus.cc View 1 1 chunk +19 lines, -7 lines 0 comments Download
M dbus/bus_unittest.cc View 1 2 chunks +40 lines, -0 lines 0 comments Download
M dbus/mock_bus.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
deymo
Hi! Here is the code to implement my suggestion. haruki should be able to review ...
7 years, 10 months ago (2013-01-30 05:15:22 UTC) #1
Haruki Sato
lgtm Thank you for the fix and a test! An idea for the unittest: We ...
7 years, 10 months ago (2013-01-30 05:33:20 UTC) #2
deymo
On 2013/01/30 05:33:20, Haruki Sato wrote: > lgtm > > Thank you for the fix ...
7 years, 10 months ago (2013-01-30 05:47:27 UTC) #3
Haruki Sato
So the returned bool might be just "dbus function is called or not" rather than ...
7 years, 10 months ago (2013-01-30 06:03:25 UTC) #4
deymo
Per my talk with Haruki, I added a new bool return value to RemoveMatch and ...
7 years, 10 months ago (2013-01-30 18:49:09 UTC) #5
Haruki Sato
lgtm Thank you!
7 years, 10 months ago (2013-01-31 01:25:29 UTC) #6
satorux1
LGTM
7 years, 10 months ago (2013-01-31 01:43:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/12088068/5001
7 years, 10 months ago (2013-01-31 01:56:41 UTC) #8
commit-bot: I haz the power
7 years, 10 months ago (2013-01-31 06:08:08 UTC) #9
Message was sent while issue was closed.
Change committed as 179809

Powered by Google App Engine
This is Rietveld 408576698