| Index: content/renderer/presentation/presentation_dispatcher.cc
|
| diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
|
| index 7bbca6bf032d976a8c844996ee61bbe23e32238f..c050a8bea6989b3cbf2abd0e2ae26c540ed83bc4 100644
|
| --- a/content/renderer/presentation/presentation_dispatcher.cc
|
| +++ b/content/renderer/presentation/presentation_dispatcher.cc
|
| @@ -87,13 +87,12 @@ void PresentationDispatcher::DoUpdateAvailableChangeWatched(
|
| const std::string& presentation_url, bool watched) {
|
| ConnectToPresentationServiceIfNeeded();
|
| if (watched) {
|
| - presentation_service_->GetScreenAvailability(
|
| + presentation_service_->ListenForScreenAvailability(
|
| presentation_url,
|
| base::Bind(&PresentationDispatcher::OnScreenAvailabilityChanged,
|
| base::Unretained(this)));
|
| } else {
|
| - presentation_service_->OnScreenAvailabilityListenerRemoved(
|
| - presentation_url);
|
| + presentation_service_->RemoveScreenAvailabilityListener(presentation_url);
|
| }
|
| }
|
|
|
|
|