Commit 0895d801 authored by jochen's avatar jochen Committed by Commit bot

Don't create a v8 isolate in ppapi tests

The unit test framework brings up blink, so we have an initialized
isolate we can just use.

BUG=none
R=andrewhayden@chromium.org,dmichael@chromium.org

Review URL: https://codereview.chromium.org/537543002

Cr-Commit-Position: refs/heads/master@{#293133}
parent 1a2d0439
...@@ -189,15 +189,10 @@ PP_Var NPObjectToPPVar(PepperPluginInstanceImpl* instance, NPObject* object) { ...@@ -189,15 +189,10 @@ PP_Var NPObjectToPPVar(PepperPluginInstanceImpl* instance, NPObject* object) {
PP_Var NPObjectToPPVarForTest(PepperPluginInstanceImpl* instance, PP_Var NPObjectToPPVarForTest(PepperPluginInstanceImpl* instance,
NPObject* object) { NPObject* object) {
v8::Isolate* test_isolate = v8::Isolate::New();
PP_Var result = PP_MakeUndefined(); PP_Var result = PP_MakeUndefined();
{ v8::HandleScope scope(instance->GetIsolate());
v8::HandleScope scope(test_isolate); v8::Local<v8::Context> context = v8::Context::New(instance->GetIsolate());
v8::Isolate::Scope isolate_scope(test_isolate);
v8::Local<v8::Context> context = v8::Context::New(test_isolate);
result = NPObjectToPPVarImpl(instance, object, context); result = NPObjectToPPVarImpl(instance, object, context);
}
test_isolate->Dispose();
return result; return result;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment