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

Issue 12220025: Shill: ShillServiceClient destroys ShillClientHelpers when they are not need. (Closed)

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

Description

Shill: ShillServiceClient destroys ShillClientHelpers when they are not need. This implements a removal mechanism in the ShillServiceClient where a given ShillClientHelper is keep cached in the helpers_ std::map if at least one of the following two condition holds: * There is an observer registered for the given service * There is a method call waiting for its answer or error response. When a ShillHelperClient is removed also the associated ObjectProxy is removed freeing in that way the match rules. BUG=chromium:170182

Patch Set 1 #

Total comments: 27

Patch Set 2 : nits and more #

Patch Set 3 : Testing add for add/remove observer. #

Total comments: 3

Patch Set 4 : Delay in the ConnectToSignal call introduced. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -24 lines) Patch
M chromeos/dbus/shill_client_helper.h View 1 2 3 3 chunks +16 lines, -1 line 0 comments Download
M chromeos/dbus/shill_client_helper.cc View 1 2 3 18 chunks +41 lines, -0 lines 0 comments Download
M chromeos/dbus/shill_service_client.cc View 1 2 3 13 chunks +152 lines, -23 lines 0 comments Download
M chromeos/dbus/shill_service_client_unittest.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M dbus/mock_bus.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
deymo
Ok. The third attempt to fix this... and I hope, the last (although I don't ...
7 years, 10 months ago (2013-02-06 00:12:39 UTC) #1
stevenjb
https://codereview.chromium.org/12220025/diff/1/chromeos/dbus/shill_client_helper.h File chromeos/dbus/shill_client_helper.h (right): https://codereview.chromium.org/12220025/diff/1/chromeos/dbus/shill_client_helper.h#newcode70 chromeos/dbus/shill_client_helper.h:70: // not. nit: // Returns true if there is ...
7 years, 10 months ago (2013-02-06 01:05:53 UTC) #2
hashimoto
https://codereview.chromium.org/12220025/diff/1/chromeos/dbus/shill_client_helper.cc File chromeos/dbus/shill_client_helper.cc (right): https://codereview.chromium.org/12220025/diff/1/chromeos/dbus/shill_client_helper.cc#newcode28 chromeos/dbus/shill_client_helper.cc:28: weak_ptr_factory_(this) { nit: Could you add ALLOW_THIS_IN_INITIALIZER_LIST here while ...
7 years, 10 months ago (2013-02-06 03:29:06 UTC) #3
deymo
Thank you very much for your comments! I uploaded a new patch with the nits ...
7 years, 10 months ago (2013-02-06 05:44:44 UTC) #4
stevenjb
https://codereview.chromium.org/12220025/diff/1/chromeos/dbus/shill_client_helper.h File chromeos/dbus/shill_client_helper.h (right): https://codereview.chromium.org/12220025/diff/1/chromeos/dbus/shill_client_helper.h#newcode192 chromeos/dbus/shill_client_helper.h:192: int ongoing_calls; On 2013/02/06 05:44:45, deymo wrote: > On ...
7 years, 10 months ago (2013-02-06 17:10:20 UTC) #5
deymo
Hi! The third patch is uploaded. What's new: 1. I added two checks for the ...
7 years, 10 months ago (2013-02-07 00:33:15 UTC) #6
stevenjb
https://codereview.chromium.org/12220025/diff/10001/chromeos/dbus/shill_service_client.cc File chromeos/dbus/shill_service_client.cc (right): https://codereview.chromium.org/12220025/diff/10001/chromeos/dbus/shill_service_client.cc#newcode66 chromeos/dbus/shill_service_client.cc:66: So, I apologize for continuing to iterate on this, ...
7 years, 10 months ago (2013-02-07 01:12:30 UTC) #7
hashimoto
https://codereview.chromium.org/12220025/diff/1/chromeos/dbus/shill_client_helper.cc File chromeos/dbus/shill_client_helper.cc (right): https://codereview.chromium.org/12220025/diff/1/chromeos/dbus/shill_client_helper.cc#newcode42 chromeos/dbus/shill_client_helper.cc:42: return ongoing_calls > 0; On 2013/02/06 05:44:45, deymo wrote: ...
7 years, 10 months ago (2013-02-07 05:20:31 UTC) #8
satorux1
7 years, 7 months ago (2013-05-08 04:05:05 UTC) #9
closing as this is very old.

Powered by Google App Engine
This is Rietveld 408576698