Commit 178d8ad3 authored by Jonathon Kereliuk's avatar Jonathon Kereliuk Committed by Commit Bot

[ChromeDriver] Rename send_command_and_get_result to proper extension

This CL renames the send_command_and_get_result endpoint to
/goog/cdp/execute which follows the extension specification format
and is a more appropriate API name. Note we still support the old name.

Bug: chromedriver:2307
Change-Id: Ia7a389781eb92a2cf9bd6244e766e6c32e9b5ab9
Reviewed-on: https://chromium-review.googlesource.com/1091216Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Jonathon Kereliuk <kereliuk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565356}
parent e1119a8b
...@@ -562,6 +562,9 @@ HttpHandler::HttpHandler( ...@@ -562,6 +562,9 @@ HttpHandler::HttpHandler(
CommandMapping( CommandMapping(
kPost, "session/:sessionId/chromium/send_command", kPost, "session/:sessionId/chromium/send_command",
WrapToCommand("SendCommand", base::Bind(&ExecuteSendCommand))), WrapToCommand("SendCommand", base::Bind(&ExecuteSendCommand))),
CommandMapping(
kPost, "session/:sessionId/goog/cdp/execute",
WrapToCommand("ExecuteCDP", base::Bind(&ExecuteSendCommandAndGetResult))),
CommandMapping( CommandMapping(
kPost, "session/:sessionId/chromium/send_command_and_get_result", kPost, "session/:sessionId/chromium/send_command_and_get_result",
WrapToCommand("SendCommandAndGetResult", WrapToCommand("SendCommandAndGetResult",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment