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

Unified Diff: content/browser/webui/web_ui_message_handler.cc

Issue 2038963002: [Offline Pages] Link the internals page with the offline model and request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More code review comment fixes 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
« no previous file with comments | « chrome/browser/ui/webui/offline_internals_ui.cc ('k') | content/public/browser/web_ui_message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/web_ui_message_handler.cc
diff --git a/content/browser/webui/web_ui_message_handler.cc b/content/browser/webui/web_ui_message_handler.cc
index 41ca291e03e8ec768fab1e9de23d2dc3f05eca97..1df0708f6a9f6a4a2ae01f2a1f0827ee4a83839e 100644
--- a/content/browser/webui/web_ui_message_handler.cc
+++ b/content/browser/webui/web_ui_message_handler.cc
@@ -81,6 +81,12 @@ void WebUIMessageHandler::ResolveJavascriptCallback(
base::FundamentalValue(true), response);
}
+void WebUIMessageHandler::ResolveJavascriptCallback(
dpapad 2016/06/10 21:08:55 I would prefer to not overload ResolveJavascriptCa
Dan Beam 2016/06/13 19:13:30 the C++ style guide discourages overloading: https
+ const std::string& callback_id,
+ const base::Value& response) {
+ ResolveJavascriptCallback(base::StringValue(callback_id), response);
+}
+
void WebUIMessageHandler::RejectJavascriptCallback(
const base::Value& callback_id,
const base::Value& response) {
« no previous file with comments | « chrome/browser/ui/webui/offline_internals_ui.cc ('k') | content/public/browser/web_ui_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698