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: third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp

Issue 1707043002: [DevTools] Support CommandLineAPI in snippets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/platform/v8_inspector/InjectedScript.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
index 3b155d37ca2b13c5130c16966fc79a648c7b91ef..945e3f13fe8cb8b860604aa071c3ff0dde69793e 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
@@ -342,6 +342,13 @@ void InjectedScript::releaseObject(const String& objectId)
m_native->unbind(boundId);
}
+v8::Local<v8::Value> InjectedScript::commandLineAPI()
+{
+ V8FunctionCall function(m_client, context(), v8Value(), "commandLineAPI");
+ bool hadException = false;
+ return function.call(hadException, false);
+}
+
PassRefPtr<Array<CallFrame>> InjectedScript::wrapCallFrames(v8::Local<v8::Object> callFrames, int asyncOrdinal)
{
v8::HandleScope handles(m_isolate);

Powered by Google App Engine
This is Rietveld 408576698