| Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| index 553b29e46086403bc7aa4d4571e5ef3b27d8c56e..34bed4838134ff34769d492a53fe0fca725885d9 100644
|
| --- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| +++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| @@ -35,6 +35,7 @@
|
| #include "content/renderer/pepper/host_dispatcher_wrapper.h"
|
| #include "content/renderer/pepper/host_globals.h"
|
| #include "content/renderer/pepper/message_channel.h"
|
| +#include "content/renderer/pepper/pepper_audio_controller.h"
|
| #include "content/renderer/pepper/pepper_browser_connection.h"
|
| #include "content/renderer/pepper/pepper_compositor_host.h"
|
| #include "content/renderer/pepper/pepper_file_ref_renderer_host.h"
|
| @@ -529,6 +530,7 @@ PepperPluginInstanceImpl::PepperPluginInstanceImpl(
|
| isolate_(v8::Isolate::GetCurrent()),
|
| is_deleted_(false),
|
| initialized_(false),
|
| + audio_controller_(new PepperAudioController(this)),
|
| view_change_weak_ptr_factory_(this),
|
| weak_factory_(this) {
|
| pp_instance_ = HostGlobals::Get()->AddInstance(this);
|
| @@ -585,6 +587,8 @@ PepperPluginInstanceImpl::~PepperPluginInstanceImpl() {
|
| if (TrackedCallback::IsPending(lock_mouse_callback_))
|
| lock_mouse_callback_->Abort();
|
|
|
| + audio_controller_->OnPepperInstanceDeleted();
|
| +
|
| if (render_frame_)
|
| render_frame_->PepperInstanceDeleted(this);
|
|
|
|
|