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 edc6ef05f60be20be124ffe767cc3fb814853f96..ff904c5344ef00e65ea6c9d22f55dde25da87cb1 100644 |
| --- a/chrome/browser/ui/webui/settings/md_settings_ui.cc |
| +++ b/chrome/browser/ui/webui/settings/md_settings_ui.cc |
| @@ -45,9 +45,13 @@ SettingsPageUIHandler::~SettingsPageUIHandler() { |
| } |
| void SettingsPageUIHandler::CallJavascriptCallback( |
|
Dan Beam
2016/03/03 19:04:51
maybe we could just introduce 2 methods, ResolveCa
dpapad
2016/03/03 19:51:53
Done.
|
| - const base::Value& callback_id, const base::Value& response) { |
| + const base::Value& callback_id, |
| + bool is_success, |
| + const base::Value& response) { |
| // cr.webUIResponse is a global JS function exposed from cr.js. |
| - web_ui()->CallJavascriptFunction("cr.webUIResponse", callback_id, response); |
| + web_ui()->CallJavascriptFunction( |
| + "cr.webUIResponse", callback_id, |
| + base::FundamentalValue(is_success), response); |
| } |
| MdSettingsUI::MdSettingsUI(content::WebUI* web_ui) |