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

Issue 1281263003: Change webcamPrivate.set/get/reset to async APIs. (Closed)

Created:
5 years, 4 months ago by xdai1
Modified:
5 years, 3 months ago
Reviewers:
Zachary Kuznia
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Currently webcamPrivate.set/get/reset functions are all sync APIs, which doesn't work for VISCA cameras. Also fix a bug that Calling webcamPrivate.set/get excessively with small time-interval causes browser crashes. The reason is a temporary variable is binded to the asynchronous function ViscaWebcam::OnCommandCompleted(). BUG=519028 Committed: https://crrev.com/50ab547896bb9f0d4afa94b1676f4a5e022fae31 Cr-Commit-Position: refs/heads/master@{#346479}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : Address Zach's comments. #

Total comments: 2

Patch Set 4 : Address Zach's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -195 lines) Patch
M extensions/browser/api/webcam_private/v4l2_webcam.h View 1 chunk +14 lines, -9 lines 0 comments Download
M extensions/browser/api/webcam_private/v4l2_webcam.cc View 1 2 3 chunks +67 lines, -40 lines 0 comments Download
M extensions/browser/api/webcam_private/visca_webcam.h View 1 2 2 chunks +24 lines, -16 lines 0 comments Download
M extensions/browser/api/webcam_private/visca_webcam.cc View 1 2 7 chunks +97 lines, -86 lines 0 comments Download
M extensions/browser/api/webcam_private/webcam.h View 1 chunk +17 lines, -9 lines 0 comments Download
M extensions/browser/api/webcam_private/webcam_private_api.h View 1 2 3 2 chunks +25 lines, -10 lines 0 comments Download
M extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc View 1 2 3 8 chunks +83 lines, -25 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
xdai1
Zach, could you help to review the CL please? Thanks for your help.
5 years, 4 months ago (2015-08-10 21:58:06 UTC) #3
xdai1
On 2015/08/10 21:58:06, xdai1 wrote: > Zach, could you help to review the CL please? ...
5 years, 4 months ago (2015-08-12 16:12:00 UTC) #4
xdai1
On 2015/08/12 16:12:00, xdai1 wrote: > On 2015/08/10 21:58:06, xdai1 wrote: > > Zach, could ...
5 years, 4 months ago (2015-08-18 16:49:50 UTC) #6
Zachary Kuznia
https://codereview.chromium.org/1281263003/diff/60001/extensions/browser/api/webcam_private/v4l2_webcam.cc File extensions/browser/api/webcam_private/v4l2_webcam.cc (right): https://codereview.chromium.org/1281263003/diff/60001/extensions/browser/api/webcam_private/v4l2_webcam.cc#newcode165 extensions/browser/api/webcam_private/v4l2_webcam.cc:165: success &= SetWebcamParameter(fd_.get(), V4L2_CID_PANTILT_CMD, It's not a good idea ...
5 years, 4 months ago (2015-08-19 20:49:44 UTC) #7
xdai1
Zach, I've addressed your comments, please take another look, thanks! https://codereview.chromium.org/1281263003/diff/60001/extensions/browser/api/webcam_private/v4l2_webcam.cc File extensions/browser/api/webcam_private/v4l2_webcam.cc (right): https://codereview.chromium.org/1281263003/diff/60001/extensions/browser/api/webcam_private/v4l2_webcam.cc#newcode165 ...
5 years, 4 months ago (2015-08-21 22:57:03 UTC) #8
xdai1
On 2015/08/21 22:57:03, xdai1 wrote: > Zach, I've addressed your comments, please take another look, ...
5 years, 4 months ago (2015-08-25 17:07:20 UTC) #9
Zachary Kuznia
https://codereview.chromium.org/1281263003/diff/80001/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc File extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc (right): https://codereview.chromium.org/1281263003/diff/80001/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc#newcode345 extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc:345: success_ &= success; You shouldn't use bitwise AND for ...
5 years, 3 months ago (2015-08-26 23:31:13 UTC) #10
xdai1
On 2015/08/26 23:31:13, Zachary Kuznia wrote: > https://codereview.chromium.org/1281263003/diff/80001/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc > File extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc > (right): > > ...
5 years, 3 months ago (2015-08-27 20:02:34 UTC) #11
xdai1
On 2015/08/27 20:02:34, xdai1 wrote: > On 2015/08/26 23:31:13, Zachary Kuznia wrote: > > > ...
5 years, 3 months ago (2015-08-31 17:33:13 UTC) #12
Zachary Kuznia
lgtm
5 years, 3 months ago (2015-08-31 19:47:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1281263003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1281263003/100001
5 years, 3 months ago (2015-08-31 21:35:28 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:100001)
5 years, 3 months ago (2015-08-31 21:54:03 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 21:54:47 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/50ab547896bb9f0d4afa94b1676f4a5e022fae31
Cr-Commit-Position: refs/heads/master@{#346479}

Powered by Google App Engine
This is Rietveld 408576698