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

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

Issue 1202963004: Gets presentation ID from route ID upon route creation, and overrides previous presentation ID with… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index 8100c03b94ed8b117aa243379d37bd18328ef2eb..23909672f944a79a53acbbcb8212d12ee7d57f00 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -344,6 +344,9 @@ void PresentationDispatcher::OnSessionCreated(
DCHECK(!session_info.is_null());
callback->onSuccess(new PresentationSessionClient(session_info.Pass()));
+ presentation_service_->ListenForSessionMessages(
+ base::Bind(&PresentationDispatcher::OnSessionMessagesReceived,
+ base::Unretained(this)));
}
void PresentationDispatcher::OnSessionStateChange(
@@ -404,9 +407,6 @@ void PresentationDispatcher::ConnectToPresentationServiceIfNeeded() {
presentation_service_->ListenForSessionStateChange(base::Bind(
&PresentationDispatcher::OnSessionStateChange,
base::Unretained(this)));
- presentation_service_->ListenForSessionMessages(
- base::Bind(&PresentationDispatcher::OnSessionMessagesReceived,
- base::Unretained(this)));
*/
}
« no previous file with comments | « content/browser/presentation/presentation_service_impl.cc ('k') | extensions/renderer/resources/media_router_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698