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

Issue 2263373003: Android: move peerconnection out of power observer. (Closed)

Created:
4 years, 4 months ago by braveyao
Modified:
4 years, 3 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, darin-cc_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: move peerconnection out of power observer. Currently when screen is off (or Chrome goes to background) for more than 1 min, peerconnection will be stoppted by PowerMonitor to save battery power. This is not necesary now since we'll suspend video call when the tab is background. And users prefer that audio call can continue while they are doing something else. BUG=513633 Committed: https://crrev.com/22c91cc29993f5f7a9f1744349b9b2065ab266bd Cr-Commit-Position: refs/heads/master@{#415372}

Patch Set 1 #

Patch Set 2 : only omit power monitor on Android #

Patch Set 3 : bypassing power monitor suspend event in OnSuspend for Android #

Patch Set 4 : move the check to renderer process #

Patch Set 5 : add a unittest #

Total comments: 2

Patch Set 6 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M content/renderer/media/peer_connection_tracker.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/media/peer_connection_tracker_unittest.cc View 1 2 3 4 5 2 chunks +21 lines, -0 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 58 (35 generated)
braveyao
Hi Tommi, do you have any idea why we add peerconnection into PowerObserver on Android? ...
4 years, 4 months ago (2016-08-22 23:36:12 UTC) #6
braveyao
Hi Per, tommi is OOO. Could you please take a look at this?
4 years, 3 months ago (2016-08-23 16:18:50 UTC) #13
perkj_chrome
On 2016/08/23 16:18:50, braveyao wrote: > Hi Per, tommi is OOO. Could you please take ...
4 years, 3 months ago (2016-08-23 18:27:53 UTC) #14
braveyao
Sorry, I took for granted that power monitor is only valid on mobile devices. Revised ...
4 years, 3 months ago (2016-08-23 18:53:56 UTC) #17
perkj_chrome
On 2016/08/23 18:53:56, braveyao wrote: > Sorry, I took for granted that power monitor is ...
4 years, 3 months ago (2016-08-23 19:19:28 UTC) #20
braveyao
Thanks Per. Good point on datachannel, which is a tricky one. With audio/video call, user ...
4 years, 3 months ago (2016-08-23 21:14:55 UTC) #23
hta - Chromium
On 2016/08/23 21:14:55, braveyao wrote: > Thanks Per. Good point on datachannel, which is a ...
4 years, 3 months ago (2016-08-23 22:06:25 UTC) #24
Niklas Enbom
I'm also torn on this. Harald, this is how it works now: If the WebRTC ...
4 years, 3 months ago (2016-08-23 22:37:49 UTC) #25
braveyao
On 2016/08/23 22:37:49, Niklas Enbom wrote: > I'm also torn on this. Harald, this is ...
4 years, 3 months ago (2016-08-24 18:22:44 UTC) #26
hta - Chromium
On 2016/08/24 18:22:44, braveyao wrote: > On 2016/08/23 22:37:49, Niklas Enbom wrote: > > I'm ...
4 years, 3 months ago (2016-08-25 09:46:59 UTC) #27
braveyao
On desktop I believe Suspend means more of a "system" level hard suspend. On Android ...
4 years, 3 months ago (2016-08-25 19:02:18 UTC) #31
hta - Chromium
lgtm for unittest: mock the peerconnection, let the unittest call PeerConnectionTrackerHost::OnSuspend, and verify that peerconnection.CloseClientPeerConnection() ...
4 years, 3 months ago (2016-08-25 20:48:25 UTC) #34
perkj_chrome
On 2016/08/25 20:48:25, hta - Chromium wrote: > lgtm > > for unittest: mock the ...
4 years, 3 months ago (2016-08-26 08:27:15 UTC) #35
braveyao
Got your point! Moved the check to PeerConnectionTracker. PTAL. And I still have some problems ...
4 years, 3 months ago (2016-08-26 18:36:19 UTC) #39
braveyao
Never mind my previous question. I managed a unittest in latest patchset. PTAL.
4 years, 3 months ago (2016-08-27 00:21:09 UTC) #42
perkj_chrome
lgtm
4 years, 3 months ago (2016-08-29 06:10:18 UTC) #45
tommi (sloooow) - chröme
Please add a comment that explains why we're handling the suspend notification differently on Android. ...
4 years, 3 months ago (2016-08-29 13:30:30 UTC) #46
hta - Chromium
lgtm still looks OK to me, but indent comment. https://codereview.chromium.org/2263373003/diff/140001/content/renderer/media/peer_connection_tracker_unittest.cc File content/renderer/media/peer_connection_tracker_unittest.cc (right): https://codereview.chromium.org/2263373003/diff/140001/content/renderer/media/peer_connection_tracker_unittest.cc#newcode97 content/renderer/media/peer_connection_tracker_unittest.cc:97: ...
4 years, 3 months ago (2016-08-29 15:07:13 UTC) #47
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/2263373003/160001
4 years, 3 months ago (2016-08-29 16:43:36 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/132262)
4 years, 3 months ago (2016-08-30 03:24:58 UTC) #52
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/2263373003/160001
4 years, 3 months ago (2016-08-30 16:26:16 UTC) #54
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 3 months ago (2016-08-30 18:47:38 UTC) #56
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 18:51:50 UTC) #58
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/22c91cc29993f5f7a9f1744349b9b2065ab266bd
Cr-Commit-Position: refs/heads/master@{#415372}

Powered by Google App Engine
This is Rietveld 408576698