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

Issue 12220128: Shill: Delay the ConnectToSignal call until an observer is added. (Closed)

Created:
7 years, 10 months ago by deymo
Modified:
7 years, 10 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: Delay the ConnectToSignal call until an observer is added. This patch delayes the call to ObjectProxy::ConnectToSignal made from the ShillClientHelper in order to call it only when there's an observer for the signal. If no observer is currently added, as in the case of a ShillClientHelper used only for method calls, this fix will efectively cause the helper to not add an unnecessary match rule in the dbus connection. This notably reduces the number of match rules used by Shill to only the number of connected networks instead of the number of available networks. BUG=chromium:170182 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182525

Patch Set 1 #

Total comments: 4

Patch Set 2 : nits addressed #

Total comments: 4

Patch Set 3 : 2nd round of nits. #

Patch Set 4 : apply issues on try bots, patch rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -1 line) Patch
M chromeos/dbus/shill_client_helper.h View 1 3 chunks +7 lines, -1 line 0 comments Download
M chromeos/dbus/shill_client_helper.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
deymo
Hi. This is my 4th CL attempting to solve/address/circumvent the same problem. This is CL ...
7 years, 10 months ago (2013-02-12 21:12:10 UTC) #1
hashimoto
lgtm if it is practically confirmed that this change is worth merging. How long does ...
7 years, 10 months ago (2013-02-13 04:01:31 UTC) #2
deymo
The main number of match rules added are because we call GetProperties for every network ...
7 years, 10 months ago (2013-02-13 05:41:07 UTC) #3
hashimoto
On 2013/02/13 05:41:07, deymo wrote: > The main number of match rules added are because ...
7 years, 10 months ago (2013-02-13 05:54:43 UTC) #4
hashimoto
lgtm, only tiny nits. Please wait for owner approval from satorux or stevenjb. https://codereview.chromium.org/12220128/diff/4/chromeos/dbus/shill_client_helper.cc File ...
7 years, 10 months ago (2013-02-13 05:56:00 UTC) #5
satorux1
I'd defer to stevenjb@ who's more familiar with the code.
7 years, 10 months ago (2013-02-13 06:38:35 UTC) #6
stevenjb
lgtm
7 years, 10 months ago (2013-02-13 18:50:02 UTC) #7
deymo
Patch3 with the nits from hashimoto. https://codereview.chromium.org/12220128/diff/4/chromeos/dbus/shill_client_helper.cc File chromeos/dbus/shill_client_helper.cc (right): https://codereview.chromium.org/12220128/diff/4/chromeos/dbus/shill_client_helper.cc#newcode38 chromeos/dbus/shill_client_helper.cc:38: // Excecutes all ...
7 years, 10 months ago (2013-02-13 19:18:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/12220128/11001
7 years, 10 months ago (2013-02-13 22:11:07 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, chromeos_unittests, ...
7 years, 10 months ago (2013-02-13 22:42:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/deymo@chromium.org/12220128/16003
7 years, 10 months ago (2013-02-13 22:42:27 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) aura_unittests, browser_tests, compositor_unittests, content_browsertests, content_unittests, interactive_ui_tests, ...
7 years, 10 months ago (2013-02-13 23:20:53 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/12220128/16003
7 years, 10 months ago (2013-02-14 19:00:57 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 20:17:45 UTC) #14
Message was sent while issue was closed.
Change committed as 182525

Powered by Google App Engine
This is Rietveld 408576698