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

Unified Diff: chrome/browser/ui/webui/chromeos/power_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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/nfc_debug_ui.cc ('k') | chrome/browser/ui/webui/chromeos/set_time_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/power_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/power_ui.cc b/chrome/browser/ui/webui/chromeos/power_ui.cc
index 11298644738ffaf5dac6b24794ea576ef4f586cb..21db7636631b00b06d4df4cc524ffc4269a40203 100644
--- a/chrome/browser/ui/webui/chromeos/power_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/power_ui.cc
@@ -97,9 +97,9 @@ void PowerMessageHandler::OnGetBatteryChargeData(const base::ListValue* value) {
base::ListValue js_system_resumed_data;
GetJsSystemResumedData(&js_system_resumed_data);
- web_ui()->CallJavascriptFunction(kOnRequestBatteryChargeDataFunction,
- js_power_supply_data,
- js_system_resumed_data);
+ web_ui()->CallJavascriptFunctionUnsafe(kOnRequestBatteryChargeDataFunction,
+ js_power_supply_data,
+ js_system_resumed_data);
}
void PowerMessageHandler::OnGetCpuIdleData(const base::ListValue* value) {
@@ -116,9 +116,8 @@ void PowerMessageHandler::OnGetCpuIdleData(const base::ListValue* value) {
base::ListValue js_system_resumed_data;
GetJsSystemResumedData(&js_system_resumed_data);
- web_ui()->CallJavascriptFunction(kOnRequestCpuIdleDataFunction,
- js_idle_data,
- js_system_resumed_data);
+ web_ui()->CallJavascriptFunctionUnsafe(kOnRequestCpuIdleDataFunction,
+ js_idle_data, js_system_resumed_data);
}
void PowerMessageHandler::OnGetCpuFreqData(const base::ListValue* value) {
@@ -135,9 +134,8 @@ void PowerMessageHandler::OnGetCpuFreqData(const base::ListValue* value) {
base::ListValue js_system_resumed_data;
GetJsSystemResumedData(&js_system_resumed_data);
- web_ui()->CallJavascriptFunction(kOnRequestCpuFreqDataFunction,
- js_freq_data,
- js_system_resumed_data);
+ web_ui()->CallJavascriptFunctionUnsafe(kOnRequestCpuFreqDataFunction,
+ js_freq_data, js_system_resumed_data);
}
void PowerMessageHandler::GetJsSystemResumedData(base::ListValue *data) {
« no previous file with comments | « chrome/browser/ui/webui/chromeos/nfc_debug_ui.cc ('k') | chrome/browser/ui/webui/chromeos/set_time_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698