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

Issue 8201023: Make ExportedObject and ObjectProxy own Bus as scoped_refptr. (Closed)

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

Description

Make ExportedObject and ObjectProxy own Bus as scoped_refptr. They should own Bus as scoped_refptr, rather than raw pointer. Otherwise, they may reference |bus_| after Bus is deleted. I know this is convoluted. I'm planning to minimize use of scoped_refptr from dbus/* but this change is necessary until then. TEST=run dbus_unittest under valgrind and confirm no memory leaks BUG=chromium-os:21379 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105222

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M dbus/bus.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M dbus/bus_unittest.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M dbus/exported_object.h View 1 chunk +1 line, -1 line 0 comments Download
M dbus/object_proxy.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
satorux1
9 years, 2 months ago (2011-10-07 23:59:40 UTC) #1
stevenjb
I may need to go over this in person with you so that I can ...
9 years, 2 months ago (2011-10-10 22:09:17 UTC) #2
satorux1
On 2011/10/10 22:09:17, Steven Bennetts wrote: > I may need to go over this in ...
9 years, 2 months ago (2011-10-11 00:05:49 UTC) #3
satorux1
forgot to publish this. http://codereview.chromium.org/8201023/diff/1/dbus/bus.cc File dbus/bus.cc (right): http://codereview.chromium.org/8201023/diff/1/dbus/bus.cc#newcode298 dbus/bus.cc:298: // reference. On 2011/10/10 22:09:17, ...
9 years, 2 months ago (2011-10-11 17:24:33 UTC) #4
stevenjb
OK, that makes sense. I think :) LGTM
9 years, 2 months ago (2011-10-11 18:35:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/8201023/5001
9 years, 2 months ago (2011-10-12 21:41:57 UTC) #6
commit-bot: I haz the power
9 years, 2 months ago (2011-10-13 00:45:30 UTC) #7
Change committed as 105222

Powered by Google App Engine
This is Rietveld 408576698