| Index: chrome/browser/chrome_content_browser_client.cc
|
| ===================================================================
|
| --- chrome/browser/chrome_content_browser_client.cc (revision 124406)
|
| +++ chrome/browser/chrome_content_browser_client.cc (working copy)
|
| @@ -1115,7 +1115,8 @@
|
| content::MediaStreamDevices devices;
|
| for (content::MediaStreamDeviceMap::const_iterator it =
|
| request->devices.begin(); it != request->devices.end(); ++it) {
|
| - devices.push_back(*it->second.begin());
|
| + if (!it->second.empty())
|
| + devices.push_back(*it->second.begin());
|
| }
|
|
|
| callback.Run(devices);
|
|
|