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

Unified Diff: chrome/common/media_router/mojo/media_router_struct_traits.h

Issue 2938173004: [Media Router] Add a supports_web_ui_controller attribute to MediaRoute (Closed)
Patch Set: . Created 3 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: chrome/common/media_router/mojo/media_router_struct_traits.h
diff --git a/chrome/common/media_router/mojo/media_router_struct_traits.h b/chrome/common/media_router/mojo/media_router_struct_traits.h
index 7f98146ff2c154e0244e7a2ec7bb96012c3c89d5..608090c5ff816d774d2535818701a8943b38dd6d 100644
--- a/chrome/common/media_router/mojo/media_router_struct_traits.h
+++ b/chrome/common/media_router/mojo/media_router_struct_traits.h
@@ -385,6 +385,11 @@ struct StructTraits<media_router::mojom::MediaRouteDataView,
: base::make_optional(route.custom_controller_path());
}
+ static bool supports_web_ui_controller(
+ const media_router::MediaRoute& route) {
+ return route.supports_web_ui_controller();
+ }
+
static bool for_display(const media_router::MediaRoute& route) {
return route.for_display();
}

Powered by Google App Engine
This is Rietveld 408576698