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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp

Issue 1648463002: DevTools: migrate injectedscript from ScriptValue to v8::Global. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 11 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: third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
index b7b616fef49f6dcde11be017f3672db710d3b23f..3cd1834b265f9efd13c777a7a135742883e83e9c 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp
@@ -366,7 +366,8 @@ void InspectorHeapProfilerAgent::getHeapObjectId(ErrorString* errorString, const
*errorString = "Inspected context has gone";
return;
}
- ScriptState::Scope scope(injectedScript->scriptState());
+
+ v8::HandleScope handles(injectedScript->isolate());
v8::Local<v8::Value> value = injectedScript->findObject(*remoteId);
if (value.IsEmpty() || value->IsUndefined()) {
*errorString = "Object with given id not found";

Powered by Google App Engine
This is Rietveld 408576698