Index: third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp b/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
index 4607fba51b53091f1fca42d920031033b48b8d7f..f1d324249f994885cd218484fa2e27b3a81e2ae5 100644 |
--- a/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
@@ -8,6 +8,7 @@ |
#include "core/dom/ExecutionContext.h" |
#include "public/web/WebFrameClient.h" |
#include "web/WebLocalFrameImpl.h" |
+#include <memory> |
namespace blink { |
@@ -24,13 +25,13 @@ AudioOutputDeviceClientImpl::~AudioOutputDeviceClientImpl() |
{ |
} |
-void AudioOutputDeviceClientImpl::checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext* context, const WebString& sinkId, PassOwnPtr<WebSetSinkIdCallbacks> callbacks) |
+void AudioOutputDeviceClientImpl::checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext* context, const WebString& sinkId, std::unique_ptr<WebSetSinkIdCallbacks> callbacks) |
{ |
DCHECK(context); |
DCHECK(context->isDocument()); |
Document* document = toDocument(context); |
WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame()); |
- webFrame->client()->checkIfAudioSinkExistsAndIsAuthorized(sinkId, WebSecurityOrigin(context->getSecurityOrigin()), callbacks.leakPtr()); |
+ webFrame->client()->checkIfAudioSinkExistsAndIsAuthorized(sinkId, WebSecurityOrigin(context->getSecurityOrigin()), callbacks.release()); |
} |
} // namespace blink |