Index: chrome/browser/media/router/media_router_mojo_impl.cc |
diff --git a/chrome/browser/media/router/media_router_mojo_impl.cc b/chrome/browser/media/router/media_router_mojo_impl.cc |
index bd9f6acaf0dfa5f8d12b87949da2c03989b75163..f4dd4916ce6cdce4ca013c182c70381809feaa26 100644 |
--- a/chrome/browser/media/router/media_router_mojo_impl.cc |
+++ b/chrome/browser/media/router/media_router_mojo_impl.cc |
@@ -730,11 +730,6 @@ void MediaRouterMojoImpl::OnRouteMessagesReceived( |
void MediaRouterMojoImpl::OnSinkAvailabilityUpdated( |
SinkAvailability availability) { |
- if (!interfaces::MediaRouter::SinkAvailability_IsValidValue(availability)) { |
- DLOG(WARNING) << "Unknown SinkAvailability value " << availability; |
- return; |
- } |
- |
if (availability_ == availability) |
return; |
@@ -759,12 +754,6 @@ void MediaRouterMojoImpl::OnSinkAvailabilityUpdated( |
void MediaRouterMojoImpl::OnPresentationConnectionStateChanged( |
const mojo::String& route_id, |
interfaces::MediaRouter::PresentationConnectionState state) { |
- if (!interfaces::MediaRouter::PresentationConnectionState_IsValidValue( |
- state)) { |
- DLOG(WARNING) << "Unknown PresentationConnectionState value " << state; |
- return; |
- } |
- |
NotifyPresentationConnectionStateChange( |
route_id, mojo::PresentationConnectionStateFromMojo(state)); |
} |