Index: content/browser/gpu/gpu_internals_ui.cc |
diff --git a/content/browser/gpu/gpu_internals_ui.cc b/content/browser/gpu/gpu_internals_ui.cc |
index 8dc9358228b3425741e07cd3047428f686013346..7ea2dff1f86413ab81678b06c83c107114ce3c80 100644 |
--- a/content/browser/gpu/gpu_internals_ui.cc |
+++ b/content/browser/gpu/gpu_internals_ui.cc |
@@ -444,13 +444,12 @@ void GpuMessageHandler::OnCallAsync(const base::ListValue* args) { |
// call BrowserBridge.onCallAsyncReply with result |
if (ret) { |
- web_ui()->CallJavascriptFunction("browserBridge.onCallAsyncReply", |
- *requestId, |
- *ret); |
+ web_ui()->CallJavascriptFunctionUnsafe("browserBridge.onCallAsyncReply", |
+ *requestId, *ret); |
delete ret; |
} else { |
- web_ui()->CallJavascriptFunction("browserBridge.onCallAsyncReply", |
- *requestId); |
+ web_ui()->CallJavascriptFunctionUnsafe("browserBridge.onCallAsyncReply", |
+ *requestId); |
} |
} |
@@ -520,8 +519,8 @@ void GpuMessageHandler::OnGpuInfoUpdate() { |
gpu_info_val->Set("gpuMemoryBufferInfo", GpuMemoryBufferInfo()); |
// Send GPU Info to javascript. |
- web_ui()->CallJavascriptFunction("browserBridge.onGpuInfoUpdate", |
- *(gpu_info_val.get())); |
+ web_ui()->CallJavascriptFunctionUnsafe("browserBridge.onGpuInfoUpdate", |
+ *(gpu_info_val.get())); |
} |
void GpuMessageHandler::OnGpuSwitched() { |