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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_ui.h

Issue 1635673003: MD Settings: Add helper method for responding to cr.sendWithPromise. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 4 years, 11 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/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 55cede3fd47142a28c8323c68dedea926f929f26..f6c1859011e667d3cd607b2818add4a2c9dfe073 100644
--- a/chrome/browser/ui/webui/settings/md_settings_ui.h
+++ b/chrome/browser/ui/webui/settings/md_settings_ui.h
@@ -25,6 +25,12 @@ class SettingsPageUIHandler : public content::WebUIMessageHandler {
// WebUIMessageHandler implementation.
void RegisterMessages() override {}
+ protected:
+ // Helper method for responding to JS requests initiated with
+ // cr.sendWithPromise().
+ void CallJavascriptCallback(content::WebUI* webui,
Dan Beam 2016/01/27 00:23:57 web_ui
dpapad 2016/01/27 00:45:24 Removed.
+ const base::Value& callbackId,
Dan Beam 2016/01/27 00:23:57 callback_id
dpapad 2016/01/27 00:45:23 Done.
+ const base::Value& response);
Dan Beam 2016/01/27 00:23:57 \n
dpapad 2016/01/27 00:45:24 Done.
private:
DISALLOW_COPY_AND_ASSIGN(SettingsPageUIHandler);
};

Powered by Google App Engine
This is Rietveld 408576698