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

Issue 2535043003: Fix MediaDevices* tests dependency on BrowserThread globals after ~BrowserThreadImpl(). (Closed)

Created:
4 years ago by gab
Modified:
4 years ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix MediaDevices* tests dependency on BrowserThread globals after ~BrowserThreadImpl(). Mostly a matter of tweaking destruction order in test and adding an additional flush instead of depending on ~MediaStreamManager() implicitly flushing MediaStreamManager::video_capture_thread_(). This is a prereq to https://codereview.chromium.org/2464233002 which will from now on reset BrowserThread globals associated with destroyed BrowserThreadImpls and thus makes DCHECK_CURRENTLY_ON fail after that fact. BUG=653916 Committed: https://crrev.com/e65b9d238a74d05a7b496d2cee9e4bcbde7623ad Cr-Commit-Position: refs/heads/master@{#435055}

Patch Set 1 #

Total comments: 2

Patch Set 2 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -4 lines) Patch
M content/browser/renderer_host/media/media_devices_dispatcher_host_unittest.cc View 2 chunks +13 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/media_devices_manager_unittest.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (11 generated)
gab
liberato@ PTAL, thanks!
4 years ago (2016-11-28 22:01:05 UTC) #4
liberato (no reviews please)
sorry for the delay. got distracted and forgot to send it. thanks -fl https://codereview.chromium.org/2535043003/diff/1/content/browser/renderer_host/media/media_devices_manager_unittest.cc File ...
4 years ago (2016-11-29 16:46:52 UTC) #7
gab
Done PTAnL https://codereview.chromium.org/2535043003/diff/1/content/browser/renderer_host/media/media_devices_manager_unittest.cc File content/browser/renderer_host/media/media_devices_manager_unittest.cc (right): https://codereview.chromium.org/2535043003/diff/1/content/browser/renderer_host/media/media_devices_manager_unittest.cc#newcode159 content/browser/renderer_host/media/media_devices_manager_unittest.cc:159: TestBrowserThreadBundle thread_bundle_; On 2016/11/29 16:46:52, liberato wrote: ...
4 years ago (2016-11-29 18:24:51 UTC) #8
liberato (no reviews please)
lgtm
4 years ago (2016-11-29 18:38:37 UTC) #11
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/2535043003/20001
4 years ago (2016-11-29 19:37:01 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-29 19:47:10 UTC) #16
commit-bot: I haz the power
4 years ago (2016-11-29 19:50:22 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e65b9d238a74d05a7b496d2cee9e4bcbde7623ad
Cr-Commit-Position: refs/heads/master@{#435055}

Powered by Google App Engine
This is Rietveld 408576698