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

Issue 9691025: dbus: allow unregistering of exported objects (Closed)

Created:
8 years, 9 months ago by keybuk
Modified:
8 years, 9 months ago
Reviewers:
stevenjb, satorux1
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

dbus: allow unregistering of exported objects Not all objects are permanent, some are transient and if we ever re-use the object path, we want a new instance of the exported object to be created rather than re-use an existing one. BUG=chromium-os:21320 TEST=dbus_unittests and included change to agent service provider Change-Id: I09882bbe2f70356182ac301c4260473051333424 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126527

Patch Set 1 #

Total comments: 2

Patch Set 2 : make the method block, and add a unit test #

Total comments: 5

Patch Set 3 : use the sequenced task runner properties rather than a waitable event #

Total comments: 2

Patch Set 4 : update doc from nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -2 lines) Patch
M chrome/browser/chromeos/dbus/bluetooth_agent_service_provider.cc View 3 chunks +9 lines, -2 lines 0 comments Download
M dbus/bus.h View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M dbus/bus.cc View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M dbus/bus_unittest.cc View 1 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
keybuk
8 years, 9 months ago (2012-03-13 01:25:35 UTC) #1
satorux1
http://codereview.chromium.org/9691025/diff/1/dbus/bus.h File dbus/bus.h (right): http://codereview.chromium.org/9691025/diff/1/dbus/bus.h#newcode236 dbus/bus.h:236: virtual void UnregisterExportedObject(const ObjectPath& object_path); This doesn't take a ...
8 years, 9 months ago (2012-03-13 06:07:06 UTC) #2
keybuk
http://codereview.chromium.org/9691025/diff/1/dbus/bus.h File dbus/bus.h (right): http://codereview.chromium.org/9691025/diff/1/dbus/bus.h#newcode236 dbus/bus.h:236: virtual void UnregisterExportedObject(const ObjectPath& object_path); The most likely place ...
8 years, 9 months ago (2012-03-13 16:01:04 UTC) #3
satorux1
http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h File dbus/bus.h (right): http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h#newcode235 dbus/bus.h:235: // BLOCKING CALL. Must be called in the origin ...
8 years, 9 months ago (2012-03-13 18:27:25 UTC) #4
keybuk
http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h File dbus/bus.h (right): http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h#newcode235 dbus/bus.h:235: // BLOCKING CALL. Must be called in the origin ...
8 years, 9 months ago (2012-03-13 18:32:41 UTC) #5
satorux1
http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h File dbus/bus.h (right): http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h#newcode235 dbus/bus.h:235: // BLOCKING CALL. Must be called in the origin ...
8 years, 9 months ago (2012-03-13 18:42:01 UTC) #6
keybuk
http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h File dbus/bus.h (right): http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h#newcode235 dbus/bus.h:235: // BLOCKING CALL. Must be called in the origin ...
8 years, 9 months ago (2012-03-13 18:53:31 UTC) #7
satorux1
http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h File dbus/bus.h (right): http://codereview.chromium.org/9691025/diff/5002/dbus/bus.h#newcode235 dbus/bus.h:235: // BLOCKING CALL. Must be called in the origin ...
8 years, 9 months ago (2012-03-13 18:56:35 UTC) #8
keybuk
2) they have to be run *before* the next call to bus::TryRegisterObjectPath (called under ExportedObject::ExportMethod) ...
8 years, 9 months ago (2012-03-13 18:58:33 UTC) #9
satorux1
LGTM with a nit. Looks safe now. http://codereview.chromium.org/9691025/diff/7004/dbus/bus.cc File dbus/bus.cc (right): http://codereview.chromium.org/9691025/diff/7004/dbus/bus.cc#newcode267 dbus/bus.cc:267: // loop ...
8 years, 9 months ago (2012-03-13 20:15:33 UTC) #10
keybuk
https://chromiumcodereview.appspot.com/9691025/diff/7004/dbus/bus.cc File dbus/bus.cc (right): https://chromiumcodereview.appspot.com/9691025/diff/7004/dbus/bus.cc#newcode267 dbus/bus.cc:267: // loop proxy is a SequencedTaskRunner, there is a ...
8 years, 9 months ago (2012-03-13 20:25:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/9691025/1005
8 years, 9 months ago (2012-03-13 20:26:04 UTC) #12
commit-bot: I haz the power
8 years, 9 months ago (2012-03-14 01:18:44 UTC) #13
Change committed as 126527

Powered by Google App Engine
This is Rietveld 408576698