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

Unified Diff: chrome/browser/ui/webui/settings/settings_page_ui_handler.cc

Issue 2040473002: Move {Resolve|Reject}JavascriptCallback helpers in WebUIMessageHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolvig conflicts with ToT Created 4 years, 6 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/settings_page_ui_handler.cc
diff --git a/chrome/browser/ui/webui/settings/settings_page_ui_handler.cc b/chrome/browser/ui/webui/settings/settings_page_ui_handler.cc
index abe3557ffb78bd28ddbae9e36407852abb78f347..facd01d9521e257c52fb91bc805646b1c3c1b75b 100644
--- a/chrome/browser/ui/webui/settings/settings_page_ui_handler.cc
+++ b/chrome/browser/ui/webui/settings/settings_page_ui_handler.cc
@@ -12,20 +12,4 @@ SettingsPageUIHandler::SettingsPageUIHandler() {}
SettingsPageUIHandler::~SettingsPageUIHandler() {}
-void SettingsPageUIHandler::ResolveJavascriptCallback(
- const base::Value& callback_id,
- const base::Value& response) {
- // cr.webUIResponse is a global JS function exposed from cr.js.
- 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.
- CallJavascriptFunction("cr.webUIResponse", callback_id,
- base::FundamentalValue(false), response);
-}
-
} // namespace settings

Powered by Google App Engine
This is Rietveld 408576698