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

Issue 514073002: Fix for ~ContentCaptureSubscription() after BrowserThreads are torn down. (Closed)

Created:
6 years, 3 months ago by miu
Modified:
6 years, 3 months ago
Reviewers:
Alpha Left Google
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix for ~ContentCaptureSubscription() after BrowserThreads are torn down. While debugging flaky browser_tests, it was revealed that a WebContentsVideoCaptureMachine could actually outlive the tear-down of the BrowserThreadImpl for the UI thread. Not having been explicitly stopped first, destructors in the object graph would execute clean up code that would attempt operations that are invalid after the BrowserThreadImpl for the UI thread has been torn down. This change also includes a bunch of minor clean-ups. BUG=396413 Committed: https://crrev.com/191dc4092d998a30ab39235a17f0f5f2d17dfb2b Cr-Commit-Position: refs/heads/master@{#292513}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -44 lines) Patch
M content/browser/media/capture/content_video_capture_device_core.h View 5 chunks +5 lines, -11 lines 1 comment Download
M content/browser/media/capture/content_video_capture_device_core.cc View 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/media/capture/desktop_capture_device_aura.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.cc View 16 chunks +29 lines, -29 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
miu
miu@chromium.org changed reviewers: + hclam@chromium.org
6 years, 3 months ago (2014-08-28 01:59:57 UTC) #1
miu
hclam: PTAL (and note my comments below). https://codereview.chromium.org/514073002/diff/1/content/browser/media/capture/content_video_capture_device_core.h File content/browser/media/capture/content_video_capture_device_core.h (left): https://codereview.chromium.org/514073002/diff/1/content/browser/media/capture/content_video_capture_device_core.h#oldcode148 content/browser/media/capture/content_video_capture_device_core.h:148: // threads ...
6 years, 3 months ago (2014-08-28 01:59:57 UTC) #2
Alpha Left Google
LGTM.
6 years, 3 months ago (2014-08-28 21:41:41 UTC) #3
miu
The CQ bit was checked by miu@chromium.org
6 years, 3 months ago (2014-08-28 22:55:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/514073002/1
6 years, 3 months ago (2014-08-28 22:57:03 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as 2ef42592956228c0da0d9514db51e67a16ef73c7
6 years, 3 months ago (2014-08-29 00:08:37 UTC) #6
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:04:04 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/191dc4092d998a30ab39235a17f0f5f2d17dfb2b
Cr-Commit-Position: refs/heads/master@{#292513}

Powered by Google App Engine
This is Rietveld 408576698