Fix crash when trying to use a camera that is already in use.
commit5ec711b14cc8d226cc7814153b9bd81d8de6be9a
authorperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 27 Sep 2012 13:10:30 +0000 (27 13:10 +0000)
committerperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 27 Sep 2012 13:10:30 +0000 (27 13:10 +0000)
treea1d0a4e925b9594187d8ac83096d1765b04ecabe
parent635e7bfc1f92b8aeec113a5e1c39739556a93952
Fix crash when trying to use a camera that is already in use.

This cl change the behaviour of VideoCaptureManager to not report errors that occur after a stream have been created.
Ie - MediaStreamManager should not be told that starting a video capture device have failed since the video capture was not started through the MediaStreamManager. Instead - only the client that tried to start the video capture is notified of the error.

BUG=152158
TEST= See the defect report.

Review URL: https://chromiumcodereview.appspot.com/10990027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159011 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
content/browser/renderer_host/media/media_stream_manager.cc
content/browser/renderer_host/media/video_capture_controller.cc
content/browser/renderer_host/media/video_capture_controller_unittest.cc
content/browser/renderer_host/media/video_capture_manager.cc
content/browser/renderer_host/media/video_capture_manager.h
media/video/capture/fake_video_capture_device.cc
media/video/capture/fake_video_capture_device.h