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

Issue 2729293002: Fix renderers not getting power broadcast messages (Closed)

Created:
3 years, 9 months ago by scottmg
Modified:
3 years, 9 months ago
Reviewers:
blundell, Will Harris
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix renderers not getting power broadcast messages Switches from a StrongBinding to a BindingSet, otherwise, as soon as the renderer had finished calling SetClient() the connection was detached and the PowerMonitorMessageBroadcaster destroyed, because the client did not maintain the connection. Instead, we now have a single PowerMonitorMessageBroadcaster that maintains a set of bound clients, and notifies all of them on power messages. R=blundell@chromium.org BUG=696197 Review-Url: https://codereview.chromium.org/2729293002 Cr-Commit-Position: refs/heads/master@{#454703} Committed: https://chromium.googlesource.com/chromium/src/+/0471e6079c754e7478a61ac81765cec789f5249a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -25 lines) Patch
M services/device/device_service.h View 2 chunks +3 lines, -0 lines 0 comments Download
M services/device/device_service.cc View 1 chunk +5 lines, -1 line 0 comments Download
M services/device/power_monitor/power_monitor_message_broadcaster.h View 3 chunks +7 lines, -4 lines 0 comments Download
M services/device/power_monitor/power_monitor_message_broadcaster.cc View 1 chunk +13 lines, -15 lines 0 comments Download
M services/device/power_monitor/power_monitor_message_broadcaster_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/device/public/cpp/power_monitor/power_monitor_broadcast_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/device/public/interfaces/power_monitor.mojom View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
scottmg
Does this make sense? AFAIU, BindingSet takes care of invalidating its members on connection errors, ...
3 years, 9 months ago (2017-03-03 22:30:25 UTC) #4
blundell
lgtm, thanks!
3 years, 9 months ago (2017-03-03 22:35:31 UTC) #5
blundell
On 2017/03/03 22:35:31, blundell wrote: > lgtm, thanks! Just for completeness: I assume that you ...
3 years, 9 months ago (2017-03-03 22:35:57 UTC) #6
scottmg
On 2017/03/03 22:35:57, blundell wrote: > On 2017/03/03 22:35:31, blundell wrote: > > lgtm, thanks! ...
3 years, 9 months ago (2017-03-03 22:36:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2729293002/1
3 years, 9 months ago (2017-03-03 22:37:31 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/378160)
3 years, 9 months ago (2017-03-03 22:43:09 UTC) #12
Will Harris
services/device/public/interfaces/power_monitor.mojom lgtm
3 years, 9 months ago (2017-03-03 22:43:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2729293002/1
3 years, 9 months ago (2017-03-03 22:45:11 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 23:14:03 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0471e6079c754e7478a61ac81765...

Powered by Google App Engine
This is Rietveld 408576698