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

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

Issue 1971893002: [MediaRouter] Update JoinRoute behavior to allow non-local routes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to imcheng@ comment Created 4 years, 7 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/browser/media/router/mojo/media_router_mojo_impl.cc
diff --git a/chrome/browser/media/router/mojo/media_router_mojo_impl.cc b/chrome/browser/media/router/mojo/media_router_mojo_impl.cc
index c30797a99dc8ac27b5308f6b415a333dcb477fe4..716964882c31102ab059a30d1db8215f076170da 100644
--- a/chrome/browser/media/router/mojo/media_router_mojo_impl.cc
+++ b/chrome/browser/media/router/mojo/media_router_mojo_impl.cc
@@ -345,8 +345,8 @@ void MediaRouterMojoImpl::JoinRoute(
DVLOG_WITH_INSTANCE(1) << "Invalid origin: " << origin;
error_result = RouteRequestResult::FromError(
"Invalid origin", RouteRequestResult::INVALID_ORIGIN);
- } else if (!HasLocalRoute()) {
- DVLOG_WITH_INSTANCE(1) << "No local routes";
+ } else if (!HasJoinableRoute()) {
+ DVLOG_WITH_INSTANCE(1) << "No joinable routes";
error_result = RouteRequestResult::FromError(
"Route not found", RouteRequestResult::ROUTE_NOT_FOUND);
}
« no previous file with comments | « chrome/browser/media/router/media_router_base.cc ('k') | chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698