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

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

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/public/test/test_web_ui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a365219859903d66b6b3b26e62bcc4ff61be12a8..3e21ce20c746cd277e646128644a868c8831277a 100644
--- a/content/public/test/test_web_ui.cc
+++ b/content/public/test/test_web_ui.cc
@@ -55,43 +55,43 @@ bool TestWebUI::CanCallJavascript() {
return true;
}
-void TestWebUI::CallJavascriptFunction(const std::string& function_name) {
+void TestWebUI::CallJavascriptFunctionUnsafe(const std::string& function_name) {
call_data_.push_back(new CallData(function_name));
}
-void TestWebUI::CallJavascriptFunction(const std::string& function_name,
- const base::Value& arg1) {
+void TestWebUI::CallJavascriptFunctionUnsafe(const std::string& function_name,
+ const base::Value& arg1) {
call_data_.push_back(new CallData(function_name));
call_data_.back()->TakeAsArg1(arg1.DeepCopy());
}
-void TestWebUI::CallJavascriptFunction(const std::string& function_name,
- const base::Value& arg1,
- const base::Value& arg2) {
+void TestWebUI::CallJavascriptFunctionUnsafe(const std::string& function_name,
+ const base::Value& arg1,
+ const base::Value& arg2) {
call_data_.push_back(new CallData(function_name));
call_data_.back()->TakeAsArg1(arg1.DeepCopy());
call_data_.back()->TakeAsArg2(arg2.DeepCopy());
}
-void TestWebUI::CallJavascriptFunction(const std::string& function_name,
- const base::Value& arg1,
- const base::Value& arg2,
- const base::Value& arg3) {
+void TestWebUI::CallJavascriptFunctionUnsafe(const std::string& function_name,
+ const base::Value& arg1,
+ const base::Value& arg2,
+ const base::Value& arg3) {
call_data_.push_back(new CallData(function_name));
call_data_.back()->TakeAsArg1(arg1.DeepCopy());
call_data_.back()->TakeAsArg2(arg2.DeepCopy());
call_data_.back()->TakeAsArg3(arg3.DeepCopy());
}
-void TestWebUI::CallJavascriptFunction(const std::string& function_name,
- const base::Value& arg1,
- const base::Value& arg2,
- const base::Value& arg3,
- const base::Value& arg4) {
+void TestWebUI::CallJavascriptFunctionUnsafe(const std::string& function_name,
+ const base::Value& arg1,
+ const base::Value& arg2,
+ const base::Value& arg3,
+ const base::Value& arg4) {
NOTREACHED();
}
-void TestWebUI::CallJavascriptFunction(
+void TestWebUI::CallJavascriptFunctionUnsafe(
const std::string& function_name,
const std::vector<const base::Value*>& args) {
NOTREACHED();
« no previous file with comments | « 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