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

Unified Diff: chrome/browser/ui/webui/policy_material_design_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: chrome/browser/ui/webui/policy_material_design_ui.cc
diff --git a/chrome/browser/ui/webui/policy_material_design_ui.cc b/chrome/browser/ui/webui/policy_material_design_ui.cc
index 1703d50fa9fd239eade500158e1b83ec9c30f29b..8cdec2090cbb23efa4dbaf3d189360547b9c5f74 100644
--- a/chrome/browser/ui/webui/policy_material_design_ui.cc
+++ b/chrome/browser/ui/webui/policy_material_design_ui.cc
@@ -86,7 +86,7 @@ void PolicyMaterialDesignUIHandler::SendPolicyNames() const {
for (size_t tag = 0; tag < policy::RISK_TAG_COUNT; ++tag)
tags.AppendString(kPolicyRiskTags[tag].key);
- web_ui()->CallJavascriptFunction("policy.Page.setPolicyGroups", tags);
+ web_ui()->CallJavascriptFunctionUnsafe("policy.Page.setPolicyGroups", tags);
PolicyUIHandler::SendPolicyNames();
}

Powered by Google App Engine
This is Rietveld 408576698