Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(886)

Unified Diff: content/browser/gpu/gpu_internals_ui.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: 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() {
« no previous file with comments | « content/browser/appcache/appcache_internals_ui.cc ('k') | content/browser/indexed_db/indexed_db_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698