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

Unified Diff: chrome/browser/media/android/router/media_router_android.cc

Issue 2947403004: [MediaRouter] Replace RouteMessage with PresentationConnectionMessage (Closed)
Patch Set: rebase Created 3 years, 5 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/media/cast_remoting_connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/android/router/media_router_android.cc
diff --git a/chrome/browser/media/android/router/media_router_android.cc b/chrome/browser/media/android/router/media_router_android.cc
index 050143e81f78f9189d3c0aa7ddee6448496e39f5..2442241138f9ab6d4cb15b18b5df9aaedef80238 100644
--- a/chrome/browser/media/android/router/media_router_android.cc
+++ b/chrome/browser/media/android/router/media_router_android.cc
@@ -14,9 +14,9 @@
#include "chrome/browser/media/router/media_routes_observer.h"
#include "chrome/browser/media/router/media_sinks_observer.h"
#include "chrome/browser/media/router/route_message_observer.h"
-#include "chrome/common/media_router/route_message.h"
#include "chrome/common/media_router/route_request_result.h"
#include "content/public/browser/browser_context.h"
+#include "content/public/common/presentation_connection_message.h"
#include "url/gurl.h"
namespace media_router {
@@ -317,9 +317,8 @@ void MediaRouterAndroid::OnMessage(const MediaRoute::Id& route_id,
if (it == message_observers_.end())
return;
- std::vector<RouteMessage> messages(1);
- messages.front().type = RouteMessage::TEXT;
- messages.front().text = message;
+ std::vector<content::PresentationConnectionMessage> messages;
+ messages.emplace_back(message);
for (auto& observer : *it->second.get())
observer.OnMessagesReceived(messages);
}
« no previous file with comments | « no previous file | chrome/browser/media/cast_remoting_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698