diff options
Diffstat (limited to 'chromium/content/renderer/media/webaudiosourceprovider_impl.h')
-rw-r--r-- | chromium/content/renderer/media/webaudiosourceprovider_impl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/content/renderer/media/webaudiosourceprovider_impl.h b/chromium/content/renderer/media/webaudiosourceprovider_impl.h index d1a6fe72322..aca9d830021 100644 --- a/chromium/content/renderer/media/webaudiosourceprovider_impl.h +++ b/chromium/content/renderer/media/webaudiosourceprovider_impl.h @@ -56,8 +56,6 @@ class CONTENT_EXPORT WebAudioSourceProviderImpl // Calls setFormat() on |client_| from the Blink renderer thread. void OnSetFormat(); - base::WeakPtrFactory<WebAudioSourceProviderImpl> weak_this_; - // Closure that posts a task to call OnSetFormat() on the renderer thread. base::Closure set_format_cb_; @@ -81,6 +79,9 @@ class CONTENT_EXPORT WebAudioSourceProviderImpl scoped_refptr<media::AudioRendererSink> sink_; scoped_ptr<media::AudioBus> bus_wrapper_; + // NOTE: Weak pointers must be invalidated before all other member variables. + base::WeakPtrFactory<WebAudioSourceProviderImpl> weak_factory_; + DISALLOW_IMPLICIT_CONSTRUCTORS(WebAudioSourceProviderImpl); }; |