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

Unified Diff: content/renderer/presentation/presentation_dispatcher.cc

Issue 1538493002: [Cast,Android,Presentation API] Send messages back to the right clients, listen for messages sooner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 years 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 | « chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CreateRouteRequest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index bcb33fade30ea6d9f49c6df76fface4e4235df51..957b392baaec5a8af67e3eb18f6008a9adfdfa74 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -338,9 +338,9 @@ void PresentationDispatcher::OnDefaultSessionStarted(
return;
if (!session_info.is_null()) {
+ presentation_service_->ListenForSessionMessages(session_info.Clone());
controller_->didStartDefaultSession(
- new PresentationConnectionClient(session_info.Clone()));
- presentation_service_->ListenForSessionMessages(session_info.Pass());
+ new PresentationConnectionClient(session_info.Pass()));
}
}
@@ -358,9 +358,9 @@ void PresentationDispatcher::OnSessionCreated(
}
DCHECK(!session_info.is_null());
+ presentation_service_->ListenForSessionMessages(session_info.Clone());
callback->onSuccess(blink::adoptWebPtr(
- new PresentationConnectionClient(session_info.Clone())));
- presentation_service_->ListenForSessionMessages(session_info.Pass());
+ new PresentationConnectionClient(session_info.Pass())));
}
void PresentationDispatcher::OnSessionStateChanged(
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CreateRouteRequest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698