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

Issue 2086603002: video_capture_manager: filter out unexpected app state changes on Android (Closed)

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

Description

There are much more APPLICATION_STATE_HAS_RUNNING_ACTIVITIES updates than we expected (by mapping to both activity.onstart and activity.onresume). And we only care the state changes from RUNNING->STOPPED->RUNNING (activity.onStart following activty.stop) to release/resume camera devices accordingly. So it's better to do the filtering earlier in app_status_listener_ callback than making a decision later by checking capturing status. BUG=615557 TEST=AutoTest Committed: https://crrev.com/3a8419c19e31739040e0eb30d2aef80cca469584 Cr-Commit-Position: refs/heads/master@{#402564}

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -6 lines) Patch
M content/browser/renderer_host/media/video_capture_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
braveyao
Hi Per, this is the cl per what we discussed. Please take a look.
4 years, 5 months ago (2016-06-27 22:32:51 UTC) #3
perkj_chrome
https://codereview.chromium.org/2086603002/diff/1/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/2086603002/diff/1/content/browser/renderer_host/media/video_capture_manager.cc#newcode1088 content/browser/renderer_host/media/video_capture_manager.cc:1088: has_stopped_activities) { Suggest rename |has_stopped_activities| to |application_state_has_running_activities_| and change ...
4 years, 5 months ago (2016-06-28 08:59:26 UTC) #4
perkj_chrome
lgtm with the comments addressed.
4 years, 5 months ago (2016-06-28 09:00:56 UTC) #5
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/2086603002/20001
4 years, 5 months ago (2016-06-28 21:43:26 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-06-28 22:10:39 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 22:12:38 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3a8419c19e31739040e0eb30d2aef80cca469584
Cr-Commit-Position: refs/heads/master@{#402564}

Powered by Google App Engine
This is Rietveld 408576698