summaryrefslogtreecommitdiffstats
path: root/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
diff options
context:
space:
mode:
authorgeorgesak <georgesak@chromium.org>2015-10-29 12:52:45 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-29 19:54:17 +0000
commitf18290df038fc2156ad5540a002aa4371c32b999 (patch)
tree94743a9f91ca63d5fd22ab99917ab1d5825fddca /extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
parentbdb1d5722535eb8e517b2cc76cbf8db41aecc006 (diff)
downloadchromium_src-f18290df038fc2156ad5540a002aa4371c32b999.zip
chromium_src-f18290df038fc2156ad5540a002aa4371c32b999.tar.gz
chromium_src-f18290df038fc2156ad5540a002aa4371c32b999.tar.bz2
Revert of webcamPrivate API: Fix regression from r351343. (patchset #7 id:130001 of https://codereview.chromium.org/1412673007/ )
Reason for revert: Suspected of breaking Chrome OS compilation. http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20GN%20%28dbg%29/builds/11367/steps/compile/logs/stdio Original issue's description: > webcamPrivate API: Fix regression from r351343. > > Additionally: > - Add unit test to test for this regression. > - Modify classes to support VISCA webcam unit tests. > - Modify VISCA webcam code to simplify code and to be more robust > against bad responses. > > BUG=548043 > > Committed: https://crrev.com/d088b80e0203d6f819a714d39ef87221a02549f9 > Cr-Commit-Position: refs/heads/master@{#356910} TBR=xdai@chromium.org,rockot@chromium.org,thestig@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=548043 Review URL: https://codereview.chromium.org/1428803003 Cr-Commit-Position: refs/heads/master@{#356920}
Diffstat (limited to 'extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc')
-rw-r--r--extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc b/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
index 02edcfa..ca7ad41 100644
--- a/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
+++ b/extensions/browser/api/webcam_private/webcam_private_api_chromeos.cc
@@ -76,12 +76,10 @@ bool WebcamPrivateAPI::OpenSerialWebcam(
if (webcam_resource)
return false;
- ViscaWebcam* visca_webcam = new ViscaWebcam;
- visca_webcam->Open(
- device_path, extension_id,
- base::Bind(&WebcamPrivateAPI::OnOpenSerialWebcam,
- weak_ptr_factory_.GetWeakPtr(), extension_id, device_path,
- make_scoped_refptr(visca_webcam), callback));
+ ViscaWebcam* visca_webcam(new ViscaWebcam(device_path, extension_id));
+ visca_webcam->Open(base::Bind(
+ &WebcamPrivateAPI::OnOpenSerialWebcam, weak_ptr_factory_.GetWeakPtr(),
+ extension_id, device_path, make_scoped_refptr(visca_webcam), callback));
return true;
}