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

Unified Diff: content/renderer/pepper/plugin_module.cc

Issue 400823004: gin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: 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 ----------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698