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

Unified Diff: content/public/test/test_web_ui.cc

Issue 1896463003: WebUI: Add JavaScript lifecycle-control to WebUIMessageHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: content/public/test/test_web_ui.cc
diff --git a/content/public/test/test_web_ui.cc b/content/public/test/test_web_ui.cc
index 03c4d7bd376d02391af6bc14219c29db416475a7..a365219859903d66b6b3b26e62bcc4ff61be12a8 100644
--- a/content/public/test/test_web_ui.cc
+++ b/content/public/test/test_web_ui.cc
@@ -51,6 +51,10 @@ void TestWebUI::AddMessageHandler(WebUIMessageHandler* handler) {
handlers_.push_back(handler);
}
+bool TestWebUI::CanCallJavascript() {
+ return true;
+}
+
void TestWebUI::CallJavascriptFunction(const std::string& function_name) {
call_data_.push_back(new CallData(function_name));
}
« content/public/browser/web_ui_message_handler.h ('K') | « content/public/test/test_web_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698