Chromium Code Reviews| 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 392bdba49ed84d9d21130bdfd2fc79c41088a826..3440042685505f75f34782a484276fe04bd89932 100644 |
| --- a/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
| +++ b/third_party/WebKit/Source/web/AudioOutputDeviceClientImpl.cpp |
| @@ -26,7 +26,7 @@ AudioOutputDeviceClientImpl::~AudioOutputDeviceClientImpl() |
| void AudioOutputDeviceClientImpl::checkIfAudioSinkExistsAndIsAuthorized(ExecutionContext* context, const WebString& sinkId, PassOwnPtr<WebSetSinkIdCallbacks> callbacks) |
| { |
| - ASSERT(context && context->isDocument()); |
| + DCHECK(context && context->isDocument()); |
|
tkent
2016/04/01 14:41:06
Please split this into two.
DCHECK(context);
|
| Document* document = toDocument(context); |
| WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame()); |
| webFrame->client()->checkIfAudioSinkExistsAndIsAuthorized(sinkId, WebSecurityOrigin(context->getSecurityOrigin()), callbacks.leakPtr()); |