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

Unified Diff: media/blink/webmediaplayer_util.cc

Issue 1323403005: Allow AudioOutputDevice objects to be initialized with a specific hardware output device and store … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Palmer's comments Created 5 years, 3 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: media/blink/webmediaplayer_util.cc
diff --git a/media/blink/webmediaplayer_util.cc b/media/blink/webmediaplayer_util.cc
index 96de408bbcf64412f31bd95aa10580a9817cd540..15707de5c4c0f0a25dbc76e728829132ded5065d 100644
--- a/media/blink/webmediaplayer_util.cc
+++ b/media/blink/webmediaplayer_util.cc
@@ -5,6 +5,7 @@
#include "media/blink/webmediaplayer_util.h"
#include <math.h>
+#include <string>
#include "base/metrics/histogram.h"
#include "media/base/bind_to_current_loop.h"
@@ -225,15 +226,10 @@ void RunSetSinkIdCallback(const SetSinkIdCallback& callback,
blink::WebSetSinkIdError::ErrorTypeSecurity,
"No permission to access device"));
break;
- case SWITCH_OUTPUT_DEVICE_RESULT_ERROR_OBSOLETE:
+ case SWITCH_OUTPUT_DEVICE_RESULT_ERROR_INTERNAL:
callback.web_callback_->onError(new blink::WebSetSinkIdError(
blink::WebSetSinkIdError::ErrorTypeAbort,
- "The requested operation became obsolete and was aborted"));
- break;
- case SWITCH_OUTPUT_DEVICE_RESULT_ERROR_NOT_SUPPORTED:
- callback.web_callback_->onError(new blink::WebSetSinkIdError(
- blink::WebSetSinkIdError::ErrorTypeAbort,
- "The requested operation cannot be performed and was aborted"));
+ "The requested operation could be performed and was aborted"));
break;
default:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698