Commit 640f5bad authored by John Chen's avatar John Chen Committed by Commit Bot

[ChromeDriver] Remove obsolete code in Perform Actions

Change-Id: I04675449d025bd2ad142c6ab1ef1e4d8cb36dc39
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1679050
Auto-Submit: John Chen <johnchen@chromium.org>
Reviewed-by: default avatarLan Wei <lanwei@chromium.org>
Commit-Queue: John Chen <johnchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672633}
parent a97c14ab
...@@ -1284,15 +1284,9 @@ Status ExecutePerformActions(Session* session, ...@@ -1284,15 +1284,9 @@ Status ExecutePerformActions(Session* session,
std::unique_ptr<base::Value>* value, std::unique_ptr<base::Value>* value,
Timeout* timeout) { Timeout* timeout) {
// extract action sequence // extract action sequence
const base::DictionaryValue* actions_dict;
const base::ListValue* actions_input; const base::ListValue* actions_input;
// TODO(lanwei): The below line will be removed after this pull request is if (!params.GetList("actions", &actions_input))
// merged, https://github.com/web-platform-tests/wpt/pull/14345.
if (!params.GetDictionary("actions", &actions_dict))
actions_dict = &params;
if (!actions_dict->GetList("actions", &actions_input))
return Status(kInvalidArgument, "'actions' must be an array"); return Status(kInvalidArgument, "'actions' must be an array");
// the processed actions // the processed actions
......
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