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

Unified Diff: chrome/browser/ui/webui/options/media_devices_selection_handler.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/options/media_devices_selection_handler.cc
diff --git a/chrome/browser/ui/webui/options/media_devices_selection_handler.cc b/chrome/browser/ui/webui/options/media_devices_selection_handler.cc
index 2923325ecc27a7cf0712d2f25f671bd661a16c73..77618f38866431cd4d0dfd7499f86b56e3e19de1 100644
--- a/chrome/browser/ui/webui/options/media_devices_selection_handler.cc
+++ b/chrome/browser/ui/webui/options/media_devices_selection_handler.cc
@@ -124,10 +124,9 @@ void MediaDevicesSelectionHandler::UpdateDevicesMenu(
base::StringValue default_value(default_id);
base::StringValue type_value(device_type);
- web_ui()->CallJavascriptFunction("ContentSettings.updateDevicesMenu",
- type_value,
- device_list,
- default_value);
+ web_ui()->CallJavascriptFunctionUnsafe("ContentSettings.updateDevicesMenu",
+ type_value, device_list,
+ default_value);
}
void MediaDevicesSelectionHandler::UpdateDevicesMenuForType(DeviceType type) {
« no previous file with comments | « chrome/browser/ui/webui/options/manage_profile_handler.cc ('k') | chrome/browser/ui/webui/options/options_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698