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

Issue 12022004: D-Bus: ObjectProxy remove function for Bus object. (Closed)

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

Description

D-Bus: ObjectProxy remove function for Bus object. This implements a remove function for an ObjectProxy owned by a bus object. Although the Bus object removes all the objects at shutdown, this functions permits to reduce the memory usage for objects no longer needed and reduce the number of dbus matching rules used in the bus connection. BUG=chromium:170182 TEST=BusTest.RemoveObjectProxy (run out/Debug/dbus_unittests) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179400

Patch Set 1 #

Total comments: 1

Patch Set 2 : Calls made from the right thread. #

Total comments: 4

Patch Set 3 : Haruki's suggestions. #

Total comments: 12

Patch Set 4 : satorux's comments implemented. #

Total comments: 6

Patch Set 5 : satorux comments in unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -16 lines) Patch
M dbus/bus.h View 1 2 3 4 chunks +42 lines, -5 lines 0 comments Download
M dbus/bus.cc View 1 2 3 2 chunks +41 lines, -11 lines 0 comments Download
M dbus/bus_unittest.cc View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
deymo
First step for fixing this bug: Implement the RemoveObjectProxy in the Bus class. satorux, can ...
7 years, 11 months ago (2013-01-17 23:33:01 UTC) #1
satorux1
Thank you for working on this! https://codereview.chromium.org/12022004/diff/1/dbus/bus.cc File dbus/bus.cc (right): https://codereview.chromium.org/12022004/diff/1/dbus/bus.cc#newcode255 dbus/bus.cc:255: iter->second.get()->Detach(); You cannot ...
7 years, 11 months ago (2013-01-18 17:32:40 UTC) #2
deymo
Patch set 2 upload. Implemented the same mechanism than in RequestOwnership to call Detach in ...
7 years, 11 months ago (2013-01-23 04:42:22 UTC) #3
Haruki Sato
Thank you for the help! https://codereview.chromium.org/12022004/diff/4001/dbus/bus.cc File dbus/bus.cc (right): https://codereview.chromium.org/12022004/diff/4001/dbus/bus.cc#newcode265 dbus/bus.cc:265: } else { maybe ...
7 years, 11 months ago (2013-01-23 09:34:05 UTC) #4
deymo
Thanks for the comments Haruki, I fixed those in the patch set 3. https://codereview.chromium.org/12022004/diff/4001/dbus/bus.cc File ...
7 years, 11 months ago (2013-01-23 19:23:46 UTC) #5
Haruki Sato
lgtm
7 years, 11 months ago (2013-01-24 09:32:39 UTC) #6
deymo
Hi, I still need an OWNER review for this CL. satorux/keybuk/stevenjb ? Thanks!
7 years, 11 months ago (2013-01-24 18:55:37 UTC) #7
satorux1
I'll take a look shortly.
7 years, 11 months ago (2013-01-24 23:08:01 UTC) #8
satorux1
https://codereview.chromium.org/12022004/diff/9001/dbus/bus.cc File dbus/bus.cc (right): https://codereview.chromium.org/12022004/diff/9001/dbus/bus.cc#newcode284 dbus/bus.cc:284: options)); I think you don't need OnRemoveObjectProxy. You should ...
7 years, 11 months ago (2013-01-25 01:46:06 UTC) #9
deymo
Patch set 4 up! Implemented all the satorux's comments. Local tests passed. https://codereview.chromium.org/12022004/diff/9001/dbus/bus.cc File dbus/bus.cc ...
7 years, 11 months ago (2013-01-25 20:50:55 UTC) #10
satorux1
LGTM with some suggestions for making comments clearer. Thank you for adding this! https://codereview.chromium.org/12022004/diff/15001/dbus/bus_unittest.cc File ...
7 years, 10 months ago (2013-01-29 03:58:39 UTC) #11
deymo
Patch 5 uploaded with the comments fixed. I'll mark it as commit ready. https://codereview.chromium.org/12022004/diff/15001/dbus/bus_unittest.cc File ...
7 years, 10 months ago (2013-01-29 04:09:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/12022004/18002
7 years, 10 months ago (2013-01-29 04:23:01 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-01-29 04:41:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/12022004/18002
7 years, 10 months ago (2013-01-29 15:07:39 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-01-29 15:43:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/12022004/18002
7 years, 10 months ago (2013-01-29 16:44:25 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-01-29 17:29:51 UTC) #18
deymo
Ok, now the problem compiling on win trybot should be fixed.
7 years, 10 months ago (2013-01-29 18:42:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/12022004/18002
7 years, 10 months ago (2013-01-29 18:45:45 UTC) #20
commit-bot: I haz the power
7 years, 10 months ago (2013-01-29 20:29:13 UTC) #21
Message was sent while issue was closed.
Change committed as 179400

Powered by Google App Engine
This is Rietveld 408576698