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

Unified Diff: chrome/browser/ui/webui/task_scheduler_internals/task_scheduler_internals_ui.cc

Issue 2484043004: Apply Delayed Code Review Comments to Task Scheduler Internals (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/task_scheduler_internals/index.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/task_scheduler_internals/task_scheduler_internals_ui.cc
diff --git a/chrome/browser/ui/webui/task_scheduler_internals/task_scheduler_internals_ui.cc b/chrome/browser/ui/webui/task_scheduler_internals/task_scheduler_internals_ui.cc
index e82305558fcca153d7479a556d5ed669e8be0fef..c7a4c4bb20551571089e41e5396301560ed10493 100644
--- a/chrome/browser/ui/webui/task_scheduler_internals/task_scheduler_internals_ui.cc
+++ b/chrome/browser/ui/webui/task_scheduler_internals/task_scheduler_internals_ui.cc
@@ -82,7 +82,8 @@ class TaskSchedulerDataHandler : public content::WebUIMessageHandler {
data.Set("histograms", std::move(histogram_value));
}
- web_ui()->CallJavascriptFunctionUnsafe(
+ AllowJavascript();
+ CallJavascriptFunction(
"TaskSchedulerInternals.onGetTaskSchedulerData", data);
}
« no previous file with comments | « chrome/browser/resources/task_scheduler_internals/index.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698