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

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: Addressing comments. 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..bdddd61f6ad9779645e0dcf62bc1406d6a4114e5 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(const base::Value& callback_id,
+ const base::Value& response);
+
private:
DISALLOW_COPY_AND_ASSIGN(SettingsPageUIHandler);
};
« no previous file with comments | « chrome/browser/ui/webui/settings/appearance_handler.cc ('k') | chrome/browser/ui/webui/settings/md_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698