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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 180633008: Add different error codes for getUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 916b2dcd371c6d7e4a741e53b991643e3f31542d..92d311edab02cba5033dea9875c0a9a222bc895e 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -179,7 +179,9 @@ class BrowserPluginGuest::MediaRequest : public PermissionRequest {
web_contents->RequestMediaAccessPermission(request_, callback_);
} else {
// Deny the request.
- callback_.Run(MediaStreamDevices(), scoped_ptr<MediaStreamUI>());
+ callback_.Run(MediaStreamDevices(),
+ MEDIA_DEVICE_INVALID_STATE,
+ scoped_ptr<MediaStreamUI>());
}
}
« no previous file with comments | « chrome/test/data/webrtc/getusermedia.js ('k') | content/browser/renderer_host/media/device_request_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698