|
Use PowerSaveBlocker for audio and video on Chrome OS.
PowerSaveBlocker objects are constructed in response to web
audio and video to keep the system from suspending or
turning its display off. Historically, this was not used on
Chrome OS, as Chrome OS has alternate mechanisms for
detecting audio and video activity and using
PowerSaveBlocker would interfere with enterprise
power-management-policy prefs to ignore audio and video
activity.
However, low-framerate video, such as that used by WebRTC
for Hangouts screen-sharing, can fail to trigger Chrome OS's
video detection code, resulting in the screen being turned
off while in use. This change renames PowerSaveBlocker's
human-readable "reason" field to "description" and adds a
new Reason enum that Chrome OS uses to identify and ignore
audio- or video-triggered PowerSaveBlockers if needed.
BUG= 354723, 176405
TEST=watch /var/log/power_manager/powerd.LATEST on chrome os
while on the receiving end of a screen-sharing hangout
and observe that a policy is sent forcing the screen on
Committed: https://crrev.com/f3c302a352d284298d790823f276c3efe943a9b6
Cr-Commit-Position: refs/heads/master@{#317612}
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+328 lines, -133 lines) |
Patch |
 |
M |
chrome/browser/apps/ephemeral_app_browsertest.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/drive/drive_uploader.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/cast_transport_host_filter.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/power_policy_controller.h
|
View
|
1
2
3
4
5
|
4 chunks |
+44 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/power_policy_controller.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+67 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chromeos/dbus/power_policy_controller_unittest.cc
|
View
|
1
|
5 chunks |
+76 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/devtools/render_frame_devtools_agent_host.cc
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_browsertest.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_resource_handler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/loader/power_save_block_resource_throttle.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/desktop_capture_device.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/capture/desktop_capture_device_aura.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/webrtc_internals.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/power_save_blocker_android.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/power_save_blocker_chromeos.cc
|
View
|
|
4 chunks |
+32 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/power_save_blocker_impl.h
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/power_save_blocker_impl.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/power_save_blocker_mac.cc
|
View
|
|
4 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/power_save_blocker_ozone.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/power_save_blocker_win.cc
|
View
|
|
6 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/power_save_blocker_x11.cc
|
View
|
|
6 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/power_save_blocker.h
|
View
|
|
1 chunk |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/power/power_api_manager.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/power/power_api_manager.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/power/power_api_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 13 (3 generated)
|