| Index: content/renderer/pepper/plugin_module.cc
|
| diff --git a/content/renderer/pepper/plugin_module.cc b/content/renderer/pepper/plugin_module.cc
|
| index d5de5e7139872eb411d7a30d513ea5bb91057b54..78b21427166e910f65554fffd3070fd15fb649a2 100644
|
| --- a/content/renderer/pepper/plugin_module.cc
|
| +++ b/content/renderer/pepper/plugin_module.cc
|
| @@ -281,12 +281,17 @@ void SetMinimumArrayBufferSizeForShmem(PP_Instance /*instance*/,
|
| // Does nothing. Not needed in-process.
|
| }
|
|
|
| +void RunV8GC(PP_Instance instance) {
|
| + content::PepperPluginInstance::Get(instance)->GetIsolate()->
|
| + RequestGarbageCollectionForTesting(v8::Isolate::kFullGarbageCollection);
|
| +}
|
| +
|
| const PPB_Testing_Private testing_interface = {
|
| &ReadImageData, &RunMessageLoop,
|
| &QuitMessageLoop, &GetLiveObjectsForInstance,
|
| &IsOutOfProcess, &SimulateInputEvent,
|
| &GetDocumentURL, &GetLiveVars,
|
| - &SetMinimumArrayBufferSizeForShmem};
|
| + &SetMinimumArrayBufferSizeForShmem,&RunV8GC};
|
|
|
| // GetInterface ----------------------------------------------------------------
|
|
|
|
|