| Index: content/renderer/gpu/gpu_benchmarking_extension.cc
|
| diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
|
| index 42f6995ff233dda56270b1647573847c6c171578..4d5357173834e93befdfd5c6b10fad5e380dbb0e 100644
|
| --- a/content/renderer/gpu/gpu_benchmarking_extension.cc
|
| +++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
|
| @@ -309,10 +309,11 @@ void OnSyntheticGestureCompleted(CallbackAndContext* callback_and_context) {
|
| v8::HandleScope scope(isolate);
|
| v8::Local<v8::Context> context = callback_and_context->GetContext();
|
| v8::Context::Scope context_scope(context);
|
| + v8::Local<v8::Function> callback = callback_and_context->GetCallback();
|
| WebLocalFrame* frame = WebLocalFrame::frameForContext(context);
|
| - if (frame) {
|
| + if (frame && !callback.IsEmpty()) {
|
| frame->callFunctionEvenIfScriptDisabled(
|
| - callback_and_context->GetCallback(), v8::Object::New(isolate), 0, NULL);
|
| + callback, v8::Object::New(isolate), 0, NULL);
|
| }
|
| }
|
|
|
|
|