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

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: Fix compile again Created 5 years, 2 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 a2c7bc864083451d882759d71de7d608c5a065a3..d229b6fcaa0fd08e00a6ab128e2e7ad7afe28db7 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -335,11 +335,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()));
@@ -424,9 +419,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();
}

Powered by Google App Engine
This is Rietveld 408576698