Index: content/renderer/presentation/presentation_dispatcher.cc |
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc |
index 325cac65c7892474fdff2f974d21d4bd3557c4bf..5929a4c77a48ef7c05e60e1940285b2768bca0b7 100644 |
--- a/content/renderer/presentation/presentation_dispatcher.cc |
+++ b/content/renderer/presentation/presentation_dispatcher.cc |
@@ -264,7 +264,9 @@ void PresentationDispatcher::getAvailability( |
return; |
} |
- status->availability_callbacks.Add(callbacks); |
+ status->availability_callbacks.Add( |
+ std::unique_ptr<blink::WebPresentationAvailabilityCallbacks>( |
+ callbacks)); |
UpdateListeningState(status); |
} |