| 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 6819528357b5d6520c07f28bb1916ac008cd3d34..59f0cd8a20e4c9628f3504372db9195fbb09fc68 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_control_delegate.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_control_delegate_(new PepperAudioControlDelegate(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_control_delegate_->OnPepperInstanceDeleted();
|
| +
|
| if (render_frame_)
|
| render_frame_->PepperInstanceDeleted(this);
|
|
|
|
|