Chromium Code Reviews| Index: chrome/browser/ui/webui/settings/md_settings_ui.h |
| diff --git a/chrome/browser/ui/webui/settings/md_settings_ui.h b/chrome/browser/ui/webui/settings/md_settings_ui.h |
| index 3895925b73ec1a4c9af9c21e6f966ebd679b41da..44cf7c682e81be3be233d44a84734057372f2425 100644 |
| --- a/chrome/browser/ui/webui/settings/md_settings_ui.h |
| +++ b/chrome/browser/ui/webui/settings/md_settings_ui.h |
| @@ -29,9 +29,16 @@ class SettingsPageUIHandler : public content::WebUIMessageHandler { |
| protected: |
| // Helper method for responding to JS requests initiated with |
| - // cr.sendWithPromise(). |
| - void CallJavascriptCallback(const base::Value& callback_id, |
| - const base::Value& response); |
| + // cr.sendWithPromise(), for the case where the returned promise should be |
| + // resolved (request succeeded). |
| + void ResolveCallback(const base::Value& callback_id, |
|
Dan Beam
2016/03/03 20:11:08
ResolveJavascriptCallback (maayyyybbe? i guess thi
dpapad
2016/03/03 20:18:52
Done.
|
| + const base::Value& response); |
| + |
| + // Helper method for responding to JS requests initiated with |
| + // cr.sendWithPromise(), for the case where the returned promise should be |
| + // rejected (request failed). |
| + void RejectCallback(const base::Value& callback_id, |
| + const base::Value& response); |
| private: |
| DISALLOW_COPY_AND_ASSIGN(SettingsPageUIHandler); |