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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioNode.cpp

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 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/webaudio/AudioNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
index 2fc46b56f2b9ac97dab19bec5b149f7c8b68eb13..657228a8b6f86e9945b33edb377c80ac6fc581a7 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioNode.cpp
@@ -550,9 +550,10 @@ void AudioNode::Dispose() {
#endif
BaseAudioContext::AutoLocker locker(context());
Handler().Dispose();
- if (context()->ContextState() == BaseAudioContext::kRunning)
+ if (context()->ContextState() == BaseAudioContext::kRunning) {
context()->GetDeferredTaskHandler().AddRenderingOrphanHandler(
- handler_.Release());
+ std::move(handler_));
+ }
}
void AudioNode::SetHandler(PassRefPtr<AudioHandler> handler) {

Powered by Google App Engine
This is Rietveld 408576698