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

Issue 2186043002: VideoCaptureDeviceAndroid: add ThreadChecker, lock access to |client_|, mini cleanup (Closed)

Created:
4 years, 4 months ago by mcasas
Modified:
4 years, 4 months ago
Reviewers:
chfremer
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_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

VideoCaptureDeviceAndroid: add ThreadChecker, lock access to |client_|, mini cleanup This CL: - Adds a thread checker to VideoCaptureDeviceAndroid, - reduces the scope of an AutoLock protecting |client_| - adds AutoLock in (other) accesses to |client_| and tests for it before using it. - cleans up (removes) superfluous DVLOG()s - reorders 1 member variable Committed: https://crrev.com/2a9a0be57eb38d4937e1cc2ef2737ae8a9a74289 Cr-Commit-Position: refs/heads/master@{#408238}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added more |lock_| protections for |client_| accessing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -15 lines) Patch
M media/capture/video/android/video_capture_device_android.h View 2 chunks +5 lines, -1 line 0 comments Download
M media/capture/video/android/video_capture_device_android.cc View 1 14 chunks +30 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
mcasas
chfremer@ cleanup CL, PTAL
4 years, 4 months ago (2016-07-27 16:05:44 UTC) #3
chfremer
https://codereview.chromium.org/2186043002/diff/1/media/capture/video/android/video_capture_device_android.cc File media/capture/video/android/video_capture_device_android.cc (right): https://codereview.chromium.org/2186043002/diff/1/media/capture/video/android/video_capture_device_android.cc#newcode234 media/capture/video/android/video_capture_device_android.cc:234: } Not sure we really can reduce the scope ...
4 years, 4 months ago (2016-07-27 17:07:59 UTC) #4
mcasas
PTAL https://codereview.chromium.org/2186043002/diff/1/media/capture/video/android/video_capture_device_android.cc File media/capture/video/android/video_capture_device_android.cc (right): https://codereview.chromium.org/2186043002/diff/1/media/capture/video/android/video_capture_device_android.cc#newcode234 media/capture/video/android/video_capture_device_android.cc:234: } On 2016/07/27 17:07:59, chfremer wrote: > Not ...
4 years, 4 months ago (2016-07-27 18:40:54 UTC) #6
chfremer
lgtm
4 years, 4 months ago (2016-07-27 19:24:25 UTC) #7
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/2186043002/20001
4 years, 4 months ago (2016-07-27 20:10:02 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-27 21:17:05 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 21:19:05 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2a9a0be57eb38d4937e1cc2ef2737ae8a9a74289
Cr-Commit-Position: refs/heads/master@{#408238}

Powered by Google App Engine
This is Rietveld 408576698