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

Unified Diff: content/browser/renderer_host/media/audio_output_authorization_handler.cc

Issue 2561343002: Revert making trying to authorize a nonsense device id a bad_message. (Closed)
Patch Set: Created 4 years 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 | « no previous file | content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_output_authorization_handler.cc
diff --git a/content/browser/renderer_host/media/audio_output_authorization_handler.cc b/content/browser/renderer_host/media/audio_output_authorization_handler.cc
index 9c8a1f469fe02de2221829dc8f8eb4056915c584..56f27ea1445b39a3cf097ba50d4fd12db5f3577d 100644
--- a/content/browser/renderer_host/media/audio_output_authorization_handler.cc
+++ b/content/browser/renderer_host/media/audio_output_authorization_handler.cc
@@ -82,8 +82,8 @@ void AudioOutputAuthorizationHandler::RequestDeviceAuthorization(
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!IsValidDeviceId(device_id)) {
- bad_message::ReceivedBadMessage(render_process_id_,
- bad_message::AOAH_NONSENSE_DEVICE_ID);
+ cb.Run(media::OUTPUT_DEVICE_STATUS_ERROR_NOT_FOUND, false,
+ media::AudioParameters::UnavailableDeviceParams(), std::string());
return;
}
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_output_authorization_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698