Index: content/renderer/dom_automation_controller.cc |
diff --git a/content/renderer/dom_automation_controller.cc b/content/renderer/dom_automation_controller.cc |
index e3d35046c1eb41da4a8f7c0566d71a23ade55b25..590388383f8778a9c01ecb4a924e4f6b6f61d95a 100644 |
--- a/content/renderer/dom_automation_controller.cc |
+++ b/content/renderer/dom_automation_controller.cc |
@@ -51,9 +51,7 @@ gin::ObjectTemplateBuilder DomAutomationController::GetObjectTemplateBuilder( |
return gin::Wrappable<DomAutomationController>::GetObjectTemplateBuilder( |
isolate) |
.SetMethod("send", &DomAutomationController::SendMsg) |
- .SetMethod("setAutomationId", &DomAutomationController::SetAutomationId) |
- .SetMethod("sendJSON", &DomAutomationController::SendJSON) |
- .SetMethod("sendWithId", &DomAutomationController::SendWithId); |
+ .SetMethod("sendJSON", &DomAutomationController::SendJSON); |
} |
void DomAutomationController::OnDestruct() {} |
@@ -106,10 +104,7 @@ bool DomAutomationController::SendMsg(const gin::Arguments& args) { |
if (!value || !serializer.Serialize(*value)) |
return false; |
- bool succeeded = Send(new FrameHostMsg_DomOperationResponse( |
- routing_id(), json)); |
- |
- return succeeded; |
+ return SendJSON(json); |
} |
bool DomAutomationController::SendJSON(const std::string& json) { |
@@ -122,16 +117,4 @@ bool DomAutomationController::SendJSON(const std::string& json) { |
return result; |
} |
-bool DomAutomationController::SendWithId(int automation_id, |
- const std::string& str) { |
- if (!render_frame()) |
- return false; |
- return Send( |
- new FrameHostMsg_DomOperationResponse(routing_id(), str)); |
-} |
- |
-bool DomAutomationController::SetAutomationId(int automation_id) { |
- return true; |
-} |
- |
} // namespace content |