Commit 67ee33ba authored by haraken@chromium.org's avatar haraken@chromium.org

Add HandleScopes to V8DOMActivityLogger's methods

Since these V8DOMActivityLogger's methods can be called from core/
(not via bindings/), it makes sense to allocate a new HandleScope
in these methods.

BUG=411445
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181694 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent cdc7a419
......@@ -75,6 +75,7 @@ V8DOMActivityLogger* V8DOMActivityLogger::currentActivityLogger()
if (!isolate->InContext())
return 0;
v8::HandleScope handleScope(isolate);
v8::Handle<v8::Context> context = isolate->GetCurrentContext();
if (context.IsEmpty() || !toDOMWindow(context))
return 0;
......@@ -92,6 +93,7 @@ V8DOMActivityLogger* V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld()
if (!isolate->InContext())
return 0;
v8::HandleScope handleScope(isolate);
v8::Handle<v8::Context> context = isolate->GetCurrentContext();
if (context.IsEmpty() || !toDOMWindow(context))
return 0;
......
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