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

Unified Diff: chrome/browser/media/router/media_router_mojo_impl.cc

Issue 1618963006: Mojo C++ bindings: support enum validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698