Commit 233364e6 authored by peria's avatar peria Committed by Commit bot

Remove checking activity_logging_world_check in v8 method template.

It is not defined in implementation, and it is not needed to be checked.
https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md#LogActivity_m_a

BUG=650150

Review-Url: https://codereview.chromium.org/2439413002
Cr-Commit-Position: refs/heads/master@{#427055}
parent 3b9a4290
...@@ -497,11 +497,7 @@ void {{method.name}}MethodCallback{{world_suffix}}(const v8::FunctionCallbackInf ...@@ -497,11 +497,7 @@ void {{method.name}}MethodCallback{{world_suffix}}(const v8::FunctionCallbackInf
ScriptState* scriptState = ScriptState::forReceiverObject(info); ScriptState* scriptState = ScriptState::forReceiverObject(info);
{% endif %} {% endif %}
V8PerContextData* contextData = scriptState->perContextData(); V8PerContextData* contextData = scriptState->perContextData();
{% if method.activity_logging_world_check %}
if (scriptState->world().isIsolatedWorld() && contextData && contextData->activityLogger())
{% else %}
if (contextData && contextData->activityLogger()) { if (contextData && contextData->activityLogger()) {
{% endif %}
ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "{{interface_name}}", "{{method.name}}"); ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "{{interface_name}}", "{{method.name}}");
Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Local<v8::Value>>>(info, 0, exceptionState); Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<Vector<v8::Local<v8::Value>>>(info, 0, exceptionState);
contextData->activityLogger()->logMethod("{{interface_name}}.{{method.name}}", info.Length(), loggerArgs.data()); contextData->activityLogger()->logMethod("{{interface_name}}.{{method.name}}", info.Length(), loggerArgs.data());
......
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