Skip to content

Commit

Permalink
Rename a wrong variable name in real time report bindings.
Browse files Browse the repository at this point in the history
debugging -> real_time_reporting.

Change-Id: I5ca652f0e46bbe6f3199f3d9eddf4f55c8b78d94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5533960
Commit-Queue: Qingxin Wu <[email protected]>
Reviewed-by: Maks Orlovich <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1300222}
  • Loading branch information
Qingxin Wu authored and Chromium LUCI CQ committed May 13, 2024
1 parent b879590 commit c97b0bf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void RealTimeReportingBindings::AttachToContext(

v8::Isolate* isolate = v8_helper_->isolate();
v8::Local<v8::External> v8_this = v8::External::New(isolate, this);
v8::Local<v8::Object> debugging = v8::Object::New(isolate);
v8::Local<v8::Object> real_time_reporting = v8::Object::New(isolate);

v8::Local<v8::FunctionTemplate> real_time_histogram_template =
v8::FunctionTemplate::New(
Expand All @@ -127,22 +127,22 @@ void RealTimeReportingBindings::AttachToContext(
isolate, &RealTimeReportingBindings::ContributeOnWorkletLatency,
v8_this);

debugging
real_time_reporting
->Set(
context,
v8_helper_->CreateStringFromLiteral("contributeToRealTimeHistogram"),
real_time_histogram_template->GetFunction(context).ToLocalChecked())
.Check();

debugging
real_time_reporting
->Set(context,
v8_helper_->CreateStringFromLiteral("contributeOnWorkletLatency"),
worklet_latency_template->GetFunction(context).ToLocalChecked())
.Check();

context->Global()
->Set(context, v8_helper_->CreateStringFromLiteral("realTimeReporting"),
debugging)
real_time_reporting)
.Check();
}

Expand Down

0 comments on commit c97b0bf

Please sign in to comment.