| 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..9260b8023ad8c9396f3b610f0919807421397a55 100644
|
| --- a/chrome/browser/ui/webui/settings/md_settings_ui.cc
|
| +++ b/chrome/browser/ui/webui/settings/md_settings_ui.cc
|
| @@ -44,10 +44,22 @@ SettingsPageUIHandler::SettingsPageUIHandler() {
|
| SettingsPageUIHandler::~SettingsPageUIHandler() {
|
| }
|
|
|
| -void SettingsPageUIHandler::CallJavascriptCallback(
|
| - const base::Value& callback_id, const base::Value& response) {
|
| +void SettingsPageUIHandler::ResolveJavascriptCallback(
|
| + const base::Value& callback_id,
|
| + 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(true), response);
|
| +}
|
| +
|
| +void SettingsPageUIHandler::RejectJavascriptCallback(
|
| + const base::Value& callback_id,
|
| + const base::Value& response) {
|
| + // cr.webUIResponse is a global JS function exposed from cr.js.
|
| + web_ui()->CallJavascriptFunction(
|
| + "cr.webUIResponse", callback_id,
|
| + base::FundamentalValue(false), response);
|
| }
|
|
|
| MdSettingsUI::MdSettingsUI(content::WebUI* web_ui)
|
|
|