Chromium Code Reviews| Index: chrome/browser/ui/webui/settings/md_settings_ui.cc |
| diff --git a/chrome/browser/ui/webui/settings/md_settings_ui.cc b/chrome/browser/ui/webui/settings/md_settings_ui.cc |
| index 3ace24271cc641730b1a45f6bbbeb84d7a7e7474..20dbcfc71bac55097715c24d040c9b043710df30 100644 |
| --- a/chrome/browser/ui/webui/settings/md_settings_ui.cc |
| +++ b/chrome/browser/ui/webui/settings/md_settings_ui.cc |
| @@ -40,6 +40,13 @@ SettingsPageUIHandler::SettingsPageUIHandler() { |
| SettingsPageUIHandler::~SettingsPageUIHandler() { |
| } |
| +void SettingsPageUIHandler::CallJavascriptCallback( |
| + content::WebUI* webui, const base::Value& callbackId, |
| + const base::Value& response) { |
| + // cr.webUIResponse is a global JS function exposed from cr.js. |
| + webui->CallJavascriptFunction("cr.webUIResponse", callbackId, response); |
|
Dan Beam
2016/01/27 00:23:57
why not just web_ui()?
dpapad
2016/01/27 00:45:23
Ah, fixed.
|
| +} |
| + |
| MdSettingsUI::MdSettingsUI(content::WebUI* web_ui) |
| : content::WebUIController(web_ui) { |
| Profile* profile = Profile::FromWebUI(web_ui); |