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

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

Issue 1406013003: [Presentation API / Media Router] Clean up default pres URL logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Original patch Created 5 years, 1 month 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 | « content/renderer/presentation/presentation_dispatcher.h ('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 9eb9c679569150bb720d5c320bf872014cf3cbdf..1a249e8ad08b8883e459bd383960f605dc803fea 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -337,11 +337,6 @@ void PresentationDispatcher::OnDefaultSessionStarted(
if (!controller_)
return;
- // Reset the callback to get the next event.
- presentation_service_->ListenForDefaultSessionStart(base::Bind(
- &PresentationDispatcher::OnDefaultSessionStarted,
- base::Unretained(this)));
-
if (!session_info.is_null()) {
controller_->didStartDefaultSession(
new PresentationConnectionClient(session_info.Clone()));
@@ -426,9 +421,6 @@ void PresentationDispatcher::ConnectToPresentationServiceIfNeeded() {
binding_.Bind(GetProxy(&client_ptr));
presentation_service_->SetClient(client_ptr.Pass());
- presentation_service_->ListenForDefaultSessionStart(base::Bind(
- &PresentationDispatcher::OnDefaultSessionStarted,
- base::Unretained(this)));
presentation_service_->ListenForSessionStateChange();
}
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698