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

Unified Diff: Source/bindings/core/v8/V8DOMActivityLogger.cpp

Issue 559813002: Add HandleScopes to V8DOMActivityLogger's methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8DOMActivityLogger.cpp
diff --git a/Source/bindings/core/v8/V8DOMActivityLogger.cpp b/Source/bindings/core/v8/V8DOMActivityLogger.cpp
index f7456c2fdc60488cd19dbc1651f92d619cffbae9..f393aae17efbff9066c04c7812de7a71217b853c 100644
--- a/Source/bindings/core/v8/V8DOMActivityLogger.cpp
+++ b/Source/bindings/core/v8/V8DOMActivityLogger.cpp
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698