DescriptionShill: 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. #
Messages
Total messages: 9 (0 generated)
|