Index: chrome/test/webdriver/commands/execute_command.cc |
diff --git a/chrome/test/webdriver/commands/execute_command.cc b/chrome/test/webdriver/commands/execute_command.cc |
index 96a0983e03cef084d522d8305640b9c79a7bab90..dc68e415197387543ed34cc4173e53fd00e6f299 100644 |
--- a/chrome/test/webdriver/commands/execute_command.cc |
+++ b/chrome/test/webdriver/commands/execute_command.cc |
@@ -13,6 +13,13 @@ namespace webdriver { |
const char kArgs[] = "args"; |
const char kScript[] = "script"; |
+ExecuteCommand::ExecuteCommand(const std::vector<std::string>& path_segments, |
+ const DictionaryValue* const parameters) |
+ : WebDriverCommand(path_segments, parameters) {} |
+ |
+ExecuteCommand::~ExecuteCommand() {} |
+ |
+ |
bool ExecuteCommand::Init(Response* const response) { |
if (!WebDriverCommand::Init(response)) { |
SET_WEBDRIVER_ERROR(response, "Failure on Init for execute command", |
@@ -30,6 +37,10 @@ bool ExecuteCommand::Init(Response* const response) { |
return true; |
} |
+bool ExecuteCommand::DoesPost() { |
+ return true; |
+} |
+ |
void ExecuteCommand::ExecutePost(Response* const response) { |
int error_code = 0; |
std::string error_msg; |
@@ -73,5 +84,9 @@ void ExecuteCommand::ExecutePost(Response* const response) { |
response->set_status(kSuccess); |
} |
+bool ExecuteCommand::RequiresValidTab() { |
+ return true; |
+} |
+ |
} // namspace webdriver |