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

Unified Diff: media/mojo/services/mojo_cdm_service.cc

Issue 1200323003: media: Quit MojoMediaApplication when no service is bound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/mojo/services/mojo_cdm_service.cc
diff --git a/media/mojo/services/mojo_cdm_service.cc b/media/mojo/services/mojo_cdm_service.cc
index 2621c51d4c19d3126d5fb4f0831c67cc968f9094..f1c6f8b76dc869fc0983400e706dd1b58079b483 100644
--- a/media/mojo/services/mojo_cdm_service.cc
+++ b/media/mojo/services/mojo_cdm_service.cc
@@ -137,6 +137,11 @@ CdmContext* MojoCdmService::GetCdmContext() {
return cdm_->GetCdmContext();
}
+void MojoCdmService::set_connection_error_handler(
+ const base::Closure& error_handler) {
+ binding_.set_connection_error_handler(error_handler);
+}
+
void MojoCdmService::OnSessionMessage(const std::string& session_id,
MediaKeys::MessageType message_type,
const std::vector<uint8_t>& message,

Powered by Google App Engine
This is Rietveld 408576698