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

Unified Diff: chrome/test/data/webrtc/getusermedia.js

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
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/getusermedia.js
diff --git a/chrome/test/data/webrtc/getusermedia.js b/chrome/test/data/webrtc/getusermedia.js
index bee3ae100f91569c15781c1eeb38c9ea7b5137cd..3cb78bfc72ee1f55bd8e7e3860ec97282bd744ae 100644
--- a/chrome/test/data/webrtc/getusermedia.js
+++ b/chrome/test/data/webrtc/getusermedia.js
@@ -78,10 +78,6 @@ function doGetUserMedia(constraints) {
* callback) depending on which callback got called by WebRTC.
*/
function obtainGetUserMediaResult() {
- // Translate from the old error to the new. Remove when rename fully deployed.
- if (gRequestWebcamAndMicrophoneResult === 'PERMISSION_DENIED')
- gRequestWebcamAndMicrophoneResult = 'PermissionDeniedError';
-
returnToTest(gRequestWebcamAndMicrophoneResult);
return gRequestWebcamAndMicrophoneResult;
}
@@ -326,8 +322,6 @@ function getSourcesFromField(audio_select, video_select) {
function getUserMediaFailedCallback_(error) {
// Translate from the old error to the new. Remove when rename fully deployed.
var errorName = error.name;
- if (errorName === 'PERMISSION_DENIED')
- errorName = 'PermissionDeniedError';
debug('GetUserMedia FAILED: Maybe the camera is in use by another process?');
gRequestWebcamAndMicrophoneResult = 'failed-with-error-' + errorName;
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698