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

Unified Diff: third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp

Issue 1983783002: Remove OwnPtr::release() calls in modules/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp
diff --git a/third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp b/third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp
index d75632ac5822abd1cefd1e53709172c5f1fff622..f231e654ff97db1c33b76b67102e9434b7c715d5 100644
--- a/third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp
+++ b/third_party/WebKit/Source/modules/audio_output_devices/HTMLMediaElementAudioOutputDevice.cpp
@@ -66,7 +66,7 @@ void SetSinkIdResolver::timerFired(Timer<SetSinkIdResolver>* timer)
webMediaPlayer->setSinkId(m_sinkId, WebSecurityOrigin(context->getSecurityOrigin()), callbacks.leakPtr());
} else {
if (AudioOutputDeviceClient* client = AudioOutputDeviceClient::from(context)) {
- client->checkIfAudioSinkExistsAndIsAuthorized(context, m_sinkId, callbacks.release());
+ client->checkIfAudioSinkExistsAndIsAuthorized(context, m_sinkId, std::move(callbacks));
} else {
// The context has been detached. Impossible to get a security origin to check.
ASSERT(context->activeDOMObjectsAreStopped());

Powered by Google App Engine
This is Rietveld 408576698